33 #if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) 34 #include <sys/param.h> 37 #include <tins/config.h> 42 #define TINS_BEGIN_PACK __pragma( pack(push, 1) ) 43 #define TINS_END_PACK __pragma( pack(pop) ) 44 #define TINS_PACKED(DECLARATION) __pragma( pack(push, 1) ) DECLARATION __pragma( pack(pop) ) 45 #define TINS_DEPRECATED(func) __declspec(deprecated) func 47 #define TINS_LIKELY(x) (x) 48 #define TINS_UNLIKELY(x) (x) 51 #define TINS_BEGIN_PACK 52 #define TINS_END_PACK __attribute__((packed)) 53 #define TINS_PACKED(DECLARATION) DECLARATION __attribute__((packed)) 54 #define TINS_DEPRECATED(func) func __attribute__ ((deprecated)) 55 #define TINS_NOEXCEPT noexcept 56 #define TINS_LIKELY(x) __builtin_expect((x),1) 57 #define TINS_UNLIKELY(x) __builtin_expect((x),0) 61 #if defined(_WIN32) && !defined(TINS_STATIC) 64 #define TINS_API __declspec(dllexport) 66 #define TINS_API __declspec(dllimport) 67 #endif // tins_EXPORTS 71 #endif // _WIN32 && !TINS_STATIC 73 #endif // TINS_MACROS_H