Main Page | Class List | File List | Class Members | File Members | Related Pages

giftconfig.h

Go to the documentation of this file.
00001 /* 00002 * $Id: giftconfig.h.in,v 1.10 2004/03/27 01:06:21 jasta Exp $ -*- C -*- 00003 * 00004 * Copyright (C) 2001-2003 giFT project (gift.sourceforge.net) 00005 * 00006 * This program is free software; you can redistribute it and/or modify it 00007 * under the terms of the GNU General Public License as published by the 00008 * Free Software Foundation; either version 2, or (at your option) any 00009 * later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, but 00012 * WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * General Public License for more details. 00015 */ 00016 00017 #ifndef __GIFTCONFIG_H 00018 #define __GIFTCONFIG_H 00019 00020 /*****************************************************************************/ 00021 00032 /*****************************************************************************/ 00033 00034 #ifdef __cplusplus 00035 #define EXTERN_C_BEGIN extern "C" { 00036 #define EXTERN_C_END } 00037 #else /* !__really_crappy_language */ 00038 #define EXTERN_C_BEGIN 00039 #define EXTERN_C_END 00040 #endif /* __really_crappy_language */ 00041 00042 /*****************************************************************************/ 00043 00044 /* 00045 * Import all the configured features that need to be installed here. 00046 */ 00047 #ifndef _MSC_VER 00048 00049 #ifndef TIME_WITH_SYS_TIME 00050 #define TIME_WITH_SYS_TIME 1 00051 #endif 00052 #ifndef HAVE_SYS_TIME_H 00053 #define HAVE_SYS_TIME_H 1 00054 #endif 00055 #ifndef VA_COPY_FUNC 00056 #define VA_COPY_FUNC va_copy 00057 #endif 00058 #ifndef SIZEOF_SHORT 00059 #define SIZEOF_SHORT 2 00060 #endif 00061 #ifndef SIZEOF_INT 00062 #define SIZEOF_INT 4 00063 #endif 00064 #ifndef SIZEOF_LONG 00065 #define SIZEOF_LONG 4 00066 #endif 00067 #ifndef BOOL 00068 #define BOOL int 00069 #endif 00070 #ifndef TRUE 00071 #define TRUE 1 00072 #endif 00073 #ifndef FALSE 00074 #define FALSE 0 00075 #endif 00076 #ifndef HAVE_FTRUNCATE 00077 #define HAVE_FTRUNCATE 1 00078 #endif 00079 #ifndef HAVE_GETTIMEOFDAY 00080 #define HAVE_GETTIMEOFDAY 1 00081 #endif 00082 #ifndef HAVE_MADVISE 00083 #define HAVE_MADVISE 1 00084 #endif 00085 #ifndef HAVE_MKSTEMP 00086 #define HAVE_MKSTEMP 1 00087 #endif 00088 #ifndef HAVE_NICE 00089 #define HAVE_NICE 1 00090 #endif 00091 #ifndef HAVE_SELECT 00092 #define HAVE_SELECT 1 00093 #endif 00094 #ifndef HAVE_POLL 00095 #define HAVE_POLL 1 00096 #endif 00097 #ifndef HAVE_RMDIR 00098 #define HAVE_RMDIR 1 00099 #endif 00100 #ifndef HAVE_SIGNAL 00101 #define HAVE_SIGNAL 1 00102 #endif 00103 #ifndef HAVE_SOCKET 00104 #define HAVE_SOCKET 1 00105 #endif 00106 #ifndef HAVE_SOCKETPAIR 00107 #define HAVE_SOCKETPAIR 1 00108 #endif 00109 #ifndef HAVE_SNPRINTF 00110 #define HAVE_SNPRINTF 1 00111 #endif 00112 #ifndef HAVE_VSNPRINTF 00113 #define HAVE_VSNPRINTF 1 00114 #endif 00115 #ifndef HAVE_STRCASECMP 00116 #define HAVE_STRCASECMP 1 00117 #endif 00118 #ifndef HAVE_STRCSPN 00119 #define HAVE_STRCSPN 1 00120 #endif 00121 #ifndef HAVE_STRPBRK 00122 #define HAVE_STRPBRK 1 00123 #endif 00124 #ifndef HAVE_STRSPN 00125 #define HAVE_STRSPN 1 00126 #endif 00127 #ifndef HAVE_STRTOL 00128 #define HAVE_STRTOL 1 00129 #endif 00130 #ifndef HAVE_STRTOUL 00131 #define HAVE_STRTOUL 1 00132 #endif 00133 #ifndef HAVE_UNLINK 00134 #define HAVE_UNLINK 1 00135 #endif 00136 #ifndef PLUGIN_DIR 00137 #define PLUGIN_DIR "/usr/local/lib/giFT" 00138 #endif 00139 #ifndef DATA_DIR 00140 #define DATA_DIR "/usr/local/share/giFT" 00141 #endif 00142 #ifndef GIFT_PACKAGE 00143 #define GIFT_PACKAGE "giFT" 00144 #endif 00145 #ifndef GIFT_VERSION 00146 #define GIFT_VERSION "0.11.6" 00147 #endif 00148 #ifndef HAVE_DIRENT_H 00149 #define HAVE_DIRENT_H 1 00150 #endif 00151 #ifndef HAVE_FCNTL_H 00152 #define HAVE_FCNTL_H 1 00153 #endif 00154 #ifndef HAVE_GETOPT_H 00155 #define HAVE_GETOPT_H 1 00156 #endif 00157 #ifndef HAVE_INTTYPES_H 00158 #define HAVE_INTTYPES_H 1 00159 #endif 00160 #ifndef HAVE_LIMITS_H 00161 #define HAVE_LIMITS_H 1 00162 #endif 00163 #ifndef HAVE_LINUX_LIMITS_H 00164 #define HAVE_LINUX_LIMITS_H 1 00165 #endif 00166 #ifndef HAVE_MEMORY_H 00167 #define HAVE_MEMORY_H 1 00168 #endif 00169 #ifndef HAVE_STDLIB_H 00170 #define HAVE_STDLIB_H 1 00171 #endif 00172 #ifndef HAVE_STDINT_H 00173 #define HAVE_STDINT_H 1 00174 #endif 00175 #ifndef HAVE_STRINGS_H 00176 #define HAVE_STRINGS_H 1 00177 #endif 00178 #ifndef HAVE_SYSLOG_H 00179 #define HAVE_SYSLOG_H 1 00180 #endif 00181 #ifndef HAVE_SYS_MMAN_H 00182 #define HAVE_SYS_MMAN_H 1 00183 #endif 00184 #ifndef HAVE_SYS_STAT_H 00185 #define HAVE_SYS_STAT_H 1 00186 #endif 00187 #ifndef HAVE_SYS_TYPES_H 00188 #define HAVE_SYS_TYPES_H 1 00189 #endif 00190 #ifndef HAVE_UNISTD_H 00191 #define HAVE_UNISTD_H 1 00192 #endif 00193 00194 #define LIBGIFT_VERSION \ 00195 ((((0) & 0xff) << 16) | \ 00196 (((11) & 0xff) << 8) | \ 00197 (((6) & 0xff))) 00198 #define LIBGIFT_VERSIONSTR "0.11.6" 00199 00200 #else /* _MSC_VER */ 00201 /* 00202 * This is an ugly hack but it works until we figure out a better way to do 00203 * it. 00204 */ 00205 #include "giftconfig_win32.h" 00206 #endif /* !_MSC_VER */ 00207 00208 /*****************************************************************************/ 00209 00210 #ifndef VA_COPY 00211 # if defined(VA_COPY_FUNC) 00212 # define VA_COPY VA_COPY_FUNC 00213 # elif defined(VA_COPY_BY_VAL) 00214 # define VA_COPY(dst,src) (dst) = (src) 00215 # else 00216 # error No facility was found for copying va_lists for your platform. Sorry. 00217 # endif 00218 #endif /* !VA_COPY */ 00219 00220 /*****************************************************************************/ 00221 00222 /* some functions have a leading underscore on windows */ 00223 #if !defined(HAVE_SNPRINTF) && defined(HAVE__SNPRINTF) 00224 # define snprintf _snprintf 00225 #endif /* !HAVE_SNPRINTF && HAVE__SNPRINTF */ 00226 00227 #if !defined(HAVE_VSNPRINTF) && defined(HAVE__VSNPRINTF) 00228 # define vsnprintf _vsnprintf 00229 #endif /* !HAVE_VSNPRINTF && HAVE__VSNPRINTF */ 00230 00231 /*****************************************************************************/ 00232 00233 #endif /* __GIFTCONFIG_H */

Generated on Sun Aug 22 08:07:10 2004 by doxygen 1.3.7