2018-10-31 02:09:11 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
2018-11-05 16:40:48 +01:00
|
|
|
#define _POSIX_VERSION 200809L
|
|
|
|
|
|
2019-05-28 21:04:47 +02:00
|
|
|
#ifndef ALWAYS_INLINE
|
2019-06-07 11:49:03 +02:00
|
|
|
# define ALWAYS_INLINE inline __attribute__((always_inline))
|
2019-05-28 21:04:47 +02:00
|
|
|
#endif
|
2019-02-15 22:37:20 +01:00
|
|
|
|
2018-10-31 02:09:11 +01:00
|
|
|
#ifdef __cplusplus
|
2019-09-23 18:58:12 +02:00
|
|
|
# ifndef __BEGIN_DECLS
|
|
|
|
|
# define __BEGIN_DECLS extern "C" {
|
|
|
|
|
# define __END_DECLS }
|
|
|
|
|
# endif
|
2018-10-31 02:09:11 +01:00
|
|
|
#else
|
2019-09-23 18:58:12 +02:00
|
|
|
# ifndef __BEGIN_DECLS
|
|
|
|
|
# define __BEGIN_DECLS
|
|
|
|
|
# define __END_DECLS
|
|
|
|
|
# endif
|
2018-10-31 02:09:11 +01:00
|
|
|
#endif
|
2018-11-05 14:50:41 +01:00
|
|
|
|
|
|
|
|
#undef __P
|
|
|
|
|
#define __P(a) a
|
2018-11-09 14:29:00 +01:00
|
|
|
|
2018-11-17 15:56:09 +01:00
|
|
|
#define offsetof(type, member) __builtin_offsetof(type, member)
|
|
|
|
|
|
2018-11-10 23:29:07 +01:00
|
|
|
#ifdef __cplusplus
|
2019-02-24 15:19:32 +01:00
|
|
|
//extern "C" int main(int, char**);
|
2018-11-10 23:29:07 +01:00
|
|
|
#endif
|