2
0

fmacros.h 396 B

123456789101112131415161718192021222324
  1. #ifndef __HIREDIS_FMACRO_H
  2. #define __HIREDIS_FMACRO_H
  3. #if !defined(_BSD_SOURCE)
  4. #define _BSD_SOURCE
  5. #endif
  6. #if defined(_AIX)
  7. #define _ALL_SOURCE
  8. #endif
  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. #if __APPLE__ && __MACH__
  17. #define _OSX
  18. #endif
  19. #endif