2
0

fmacros.h 431 B

12345678910111213141516171819202122232425
  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(__CYGWIN__)
  8. #include <sys/cdefs.h>
  9. #endif
  10. #if defined(__sun__)
  11. #define _POSIX_C_SOURCE 200112L
  12. #else
  13. #if !(defined(__APPLE__) && defined(__MACH__)) && !(defined(__FreeBSD__))
  14. #define _XOPEN_SOURCE 600
  15. #endif
  16. #endif
  17. #if defined(__APPLE__) && defined(__MACH__)
  18. #define _OSX
  19. #endif
  20. #endif