headers.h

Go to the documentation of this file.
00001 /* Essential tools.
00002  *
00003  * PegSoft compatibility library (c) 2004 PegSoft
00004  * Contact us at pegsoft@pegsoft.net
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License version 2 as
00008  * published by the Free Software Foundation.
00009  *
00010  * This program is distributed in the hope that it will be useful, but
00011  * WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this software (the COPYING file); if not, write to the
00017  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
00018  * USA.
00019  *
00020  */
00021 
00028 #ifndef SYSTEM_HEADERS_H
00029 #define SYSTEM_HEADERS_H
00030 
00031 /*************************************************************************/
00032 
00033 #if HAVE_CONFIG_H
00034 # include <config.h>
00035 #endif
00036 
00037 #ifndef _GNU_SOURCE
00038 # define _GNU_SOURCE    1
00039 #endif
00040 
00041 #if defined(__cplusplus)
00042 # include <cstdio>
00043 # include <cstdlib>
00044 # include <cstddef>
00045 # include <cstdarg>
00046 # include <cstring>
00047 # include <cctype>
00048 # include <cerrno>
00049 # include <climits>
00050 #else
00051 # include <stdio.h>
00052 # if STDC_HEADERS
00053 #  include <stdlib.h>
00054 #  include <stddef.h>
00055 #  include <stdarg.h>
00056 # else
00057 #  if HAVE_STDLIB_H
00058 #   include <stdlib.h>
00059 #  endif
00060 #  if HAVE_STDDEF_H
00061 #   include <stddef.h>
00062 #  endif
00063 #  if HAVE_STDARG_H
00064 #   include <stdarg.h>
00065 #  endif
00066 # endif
00067 # if HAVE_STRING_H
00068 #  include <string.h>
00069 # endif
00070 # if HAVE_CTYPE_H
00071 #  include <ctype.h>
00072 # endif
00073 # if HAVE_ERRNO_H
00074 #  include <errno.h>
00075 # endif
00076 # if HAVE_LIMITS_H
00077 #  include <limits.h>
00078 # endif
00079 #endif
00080 
00081 #if TIME_WITH_SYS_TIME
00082 # include <sys/time.h>
00083 # if defined(__cplusplus)
00084 #  include <ctime>
00085 # else
00086 #  include <time.h>
00087 # endif
00088 #else
00089 # if HAVE_SYS_TIME_H
00090 #  include <sys/time.h>
00091 # else
00092 #  if defined(__cplusplus)
00093 #   include <ctime>
00094 #  else
00095 #   include <time.h>
00096 #  endif
00097 # endif
00098 #endif
00099 
00100 #if HAVE_INTTYPES_H
00101 # include <inttypes.h>
00102 #else
00103 # if HAVE_STDINT_H
00104 #  include <stdint.h>
00105 # endif
00106 #endif
00107 
00108 #if HAVE_SYS_TYPES_H
00109 # include <sys/types.h>
00110 #endif
00111 
00112 #if !STDC_HEADERS && HAVE_MEMORY_H
00113 # include <memory.h>
00114 #endif
00115 #if HAVE_STRINGS_H
00116 # include <strings.h>
00117 #endif
00118 
00119 #if HAVE_UNISTD_H
00120 # include <unistd.h>
00121 #endif
00122 
00123 /*************************************************************************/
00124 
00125 #include <system/compat.h>
00126 
00127 /*************************************************************************/
00128 
00129 #endif /* SYSTEM_HEADERS_H */

Generated on Wed Aug 15 00:37:22 2007 for Epona API by  doxygen 1.5.2