PageRenderTime 283ms CodeModel.GetById 161ms app.highlight 1ms RepoModel.GetById 119ms app.codeStats 1ms

/hiredis/fmacros.h

http://github.com/nicolasff/webdis
C++ Header | 21 lines | 17 code | 4 blank | 0 comment | 3 complexity | 672004b4c9189e72e137d7fcadfab128 MD5 | raw file
 1#ifndef __HIREDIS_FMACRO_H
 2#define __HIREDIS_FMACRO_H
 3
 4#if defined(__linux__)
 5#define _BSD_SOURCE
 6#define _DEFAULT_SOURCE
 7#endif
 8
 9#if defined(__sun__)
10#define _POSIX_C_SOURCE 200112L
11#elif defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__)
12#define _XOPEN_SOURCE 600
13#else
14#define _XOPEN_SOURCE
15#endif
16
17#if __APPLE__ && __MACH__
18#define _OSX
19#endif
20
21#endif