icinga2/third-party/hiredis/fmacros.h

22 lines
371 B
C
Raw Normal View History

2017-02-09 14:05:00 +01:00
#ifndef __HIREDIS_FMACRO_H
#define __HIREDIS_FMACRO_H
#if defined(__linux__)
#define _BSD_SOURCE
#define _DEFAULT_SOURCE
#endif
#if defined(__sun__)
#define _POSIX_C_SOURCE 200112L
2017-03-09 12:26:09 +01:00
#elif defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__)
2017-02-09 14:05:00 +01:00
#define _XOPEN_SOURCE 600
2017-03-09 12:26:09 +01:00
#else
#define _XOPEN_SOURCE
2017-02-09 14:05:00 +01:00
#endif
2017-03-09 12:26:09 +01:00
#if __APPLE__ && __MACH__
2017-02-09 14:05:00 +01:00
#define _OSX
#endif
#endif