/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. #if defined(__linux__)
  4. #define _BSD_SOURCE
  5. #define _DEFAULT_SOURCE
  6. #endif
  7. #if defined(__sun__)
  8. #define _POSIX_C_SOURCE 200112L
  9. #elif defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__)
  10. #define _XOPEN_SOURCE 600
  11. #else
  12. #define _XOPEN_SOURCE
  13. #endif
  14. #if __APPLE__ && __MACH__
  15. #define _OSX
  16. #endif
  17. #endif