00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00024 #ifndef COMMON_H_FLAG
00025 #define COMMON_H_FLAG
00026
00027
00028 #ifdef HAVE_CONFIG_H
00029 # include <config.h>
00030 #endif
00031
00033 #define _BSD_SOURCE 1
00034
00035 #define _XOPEN_SOURCE 500
00036
00037 #define true 1
00038
00039 #define false 0
00040
00041 #define E_SUCCESS 0
00042
00043 #define E_FAILURE -1
00044
00045
00047 #ifndef HAVE_FUNC_ATTRIBUTE
00048 # define __attribute__(a)
00049 #endif
00050
00051
00054 #ifdef HAVE_STRSIGNAL
00055 # define _GNU_SOURCE
00056 # define __EXTENSIONS__
00057 # include <string.h>
00058
00059
00060 #endif
00061
00062
00071 #ifdef HAVE_BROKEN_STDARG_H_SOLARIS
00072 #define _VA_LIST
00073 #endif
00074 #include <stdio.h>
00075 #ifdef HAVE_BROKEN_STDARG_H_SOLARIS
00076 #undef _VA_LIST
00077 #endif
00078
00079 #endif