2
0

fmacros.h 350 B

1234567891011121314151617181920
  1. #ifndef __HIREDIS_FMACRO_H
  2. #define __HIREDIS_FMACRO_H
  3. #if !defined(_BSD_SOURCE)
  4. #define _BSD_SOURCE
  5. #endif
  6. #if defined(__sun__)
  7. #define _POSIX_C_SOURCE 200112L
  8. #elif defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__)
  9. #define _XOPEN_SOURCE 600
  10. #else
  11. #define _XOPEN_SOURCE
  12. #endif
  13. #if __APPLE__ && __MACH__
  14. #define _OSX
  15. #endif
  16. #endif