2
0

fmacros.h 303 B

12345678910111213141516
  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. #endif