GRU - Generic Reusable Utilities
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
gru_portable.h
Go to the documentation of this file.
1 
16 #if !defined(_WIN32) && !defined(_WIN64)
17 #define likely(x) __builtin_expect((x), 1)
18 #define unlikely(x) __builtin_expect((x), 0)
19 #define gru_export
20 #define gru_restrict restrict
21 #define gru_attr_unused __attribute__((unused))
22 #else
23 #define likely(x) (x)
24 #define unlikely(x) (x)
25 #define bzero(b, len) (memset((b), '\0', (len)), (void) 0)
26 #define strcasecmp _stricmp
27 #define strncasecmp _strnicmp
28 #define strerror_r(errno, buf, len) strerror_s(buf, len, errno)
29 #define gru_export __declspec(dllexport)
30 #define gru_restrict
31 #define gru_attr_unused
32 #endif