1*906afcb8SAndy Fiddaman/* : : generated from contrib/ast/src/lib/libast/features/standards by iffe version 2012-07-17 : : */ 2*906afcb8SAndy Fiddaman#ifndef _def_standards_ast 3*906afcb8SAndy Fiddaman#define _def_standards_ast 1 4*906afcb8SAndy Fiddaman#define _sys_types 1 /* #include <sys/types.h> ok */ 5*906afcb8SAndy Fiddaman/* _ALL_SOURCE & _POSIX_SOURCE & _POSIX_C_SOURCE & _XOPEN_SOURCE & __EXTENSIONS__ works */ 6*906afcb8SAndy Fiddaman#ifndef _ALL_SOURCE 7*906afcb8SAndy Fiddaman#define _ALL_SOURCE 1 8*906afcb8SAndy Fiddaman#endif 9*906afcb8SAndy Fiddaman#ifndef _POSIX_SOURCE 10*906afcb8SAndy Fiddaman#define _POSIX_SOURCE 1 11*906afcb8SAndy Fiddaman#endif 12*906afcb8SAndy Fiddaman#ifndef _POSIX_C_SOURCE 13*906afcb8SAndy Fiddaman#define _POSIX_C_SOURCE 21000101L 14*906afcb8SAndy Fiddaman#endif 15*906afcb8SAndy Fiddaman#ifndef _XOPEN_SOURCE 16*906afcb8SAndy Fiddaman#define _XOPEN_SOURCE 9900 17*906afcb8SAndy Fiddaman#endif 18*906afcb8SAndy Fiddaman#ifndef _GNU_SOURCE 19*906afcb8SAndy Fiddaman#define _GNU_SOURCE 1 20*906afcb8SAndy Fiddaman#endif 21*906afcb8SAndy Fiddaman#ifndef __EXTENSIONS__ 22*906afcb8SAndy Fiddaman#define __EXTENSIONS__ 1 23*906afcb8SAndy Fiddaman#endif 24*906afcb8SAndy Fiddaman 25*906afcb8SAndy Fiddaman#define _LIB_m 1 /* -lm is a library */ 26*906afcb8SAndy Fiddaman/* _ISOC99_SOURCE plays nice */ 27*906afcb8SAndy Fiddaman#ifndef _ISOC99_SOURCE 28*906afcb8SAndy Fiddaman#define _ISOC99_SOURCE 1 29*906afcb8SAndy Fiddaman#endif 30*906afcb8SAndy Fiddaman 31*906afcb8SAndy Fiddaman 32*906afcb8SAndy Fiddaman/* 33*906afcb8SAndy Fiddaman* this is a nasty game we all play to honor standards symbol visibility 34*906afcb8SAndy Fiddaman* it would help if all implementations had 35*906afcb8SAndy Fiddaman* _KITCHEN_SINK_SOURCE 36*906afcb8SAndy Fiddaman* that enabled all symbols from the latest implemented standards 37*906afcb8SAndy Fiddaman* that's probably the most useful but least portable request 38*906afcb8SAndy Fiddaman*/ 39*906afcb8SAndy Fiddaman 40*906afcb8SAndy Fiddaman#if __MACH__ 41*906afcb8SAndy Fiddaman#undef _POSIX_SOURCE 42*906afcb8SAndy Fiddaman#endif 43*906afcb8SAndy Fiddaman 44*906afcb8SAndy Fiddaman 45*906afcb8SAndy Fiddaman#endif 46