2011-04-19 17:07:36 -04:00
|
|
|
#ifndef __HIREDIS_FMACRO_H
|
|
|
|
#define __HIREDIS_FMACRO_H
|
2010-11-03 11:03:04 -04:00
|
|
|
|
2012-02-19 14:26:36 -05:00
|
|
|
#if !defined(_BSD_SOURCE)
|
2010-11-03 11:03:04 -04:00
|
|
|
#define _BSD_SOURCE
|
2011-04-19 17:07:36 -04:00
|
|
|
#endif
|
2010-11-03 11:03:04 -04:00
|
|
|
|
2012-02-19 14:26:36 -05:00
|
|
|
#if defined(__sun__)
|
|
|
|
#define _POSIX_C_SOURCE 200112L
|
2012-12-12 10:49:12 -05:00
|
|
|
#elif defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__)
|
2012-02-19 14:26:36 -05:00
|
|
|
#define _XOPEN_SOURCE 600
|
2010-11-03 11:03:04 -04:00
|
|
|
#else
|
|
|
|
#define _XOPEN_SOURCE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|