Crossfire Client, Branch  R11627
config.h
Go to the documentation of this file.
00001 /* win32/config.h hand tweaked defines and modified in other ways to work with Visual Studio */
00002 #ifndef __CROSSFIRE_CLIENT_CONFIG
00003 #define __CROSSFIRE_CLIENT_CONFIG
00004 
00005 /* common/config.h.  Generated automatically by configure.  */
00006 /* config.h.in.  Generated automatically from configure.in by autoheader 2.13.  */
00007 
00008 /* Define to empty if the keyword does not work.  */
00009 /* #undef const */
00010 
00011 /* Define if you don't have vprintf but do have _doprnt.  */
00012 /* #undef HAVE_DOPRNT */
00013 
00014 /* Define if you have the vprintf function.  */
00015 #define HAVE_VPRINTF 1
00016 
00017 /* Define if you have the ANSI C header files.  */
00018 #define STDC_HEADERS 1
00019 
00020 /* Define if you can safely include both <sys/time.h> and <time.h>.  */
00021 #define TIME_WITH_SYS_TIME 1
00022 
00023 /* Define if your processor stores words with the most significant
00024    byte first (like Motorola and SPARC, unlike Intel and VAX).  */
00025 /* #undef WORDS_BIGENDIAN */
00026 
00027 /* Define if the X Window System is missing or not being used.  */
00028 /* #undef X_DISPLAY_MISSING */
00029 
00030 /* #undef ENABLE_NLS */
00031 /* #undef HAVE_CATGETS */
00032 /* #undef HAVE_GETTEXT */
00033 /* #undef HAVE_LC_MESSAGES */
00034 /* #undef HAVE_STPCPY */
00035 /* #undef HAVE_LIBSM */
00036 /* #undef HAVE_LIBXPM */
00037 
00038 /* Define if you have the mkdir function.  */
00039 #define HAVE_MKDIR 1
00040 
00041 /* Define if you have the socket function.  */
00042 #define HAVE_SOCKET 1
00043 
00044 /* Define if you have the strcspn function.  */
00045 #define HAVE_STRCSPN 1
00046 
00047 /* Define if you have the sysconf function.  */
00048 /* #define HAVE_SYSCONF 1 */
00049 
00050 /* Define if you have the <X11/SM/SMlib.h> header file.  */
00051 /* #undef HAVE_X11_SM_SMLIB_H */
00052 
00053 /* Define if you have the <dmalloc.h> header file.  */
00054 /* #undef HAVE_DMALLOC_H */
00055 
00056 /* Define if you have the <fcntl.h> header file.  */
00057 #define HAVE_FCNTL_H 1
00058 
00059 /* Define if you have the <string.h> header file.  */
00060 #define HAVE_STRING_H 1
00061 
00062 /* Define if you have the <sys/ioctl.h> header file.  */
00063 #define HAVE_SYS_IOCTL_H 1
00064 
00065 /* Define if you have the <sys/select.h> header file.  */
00066 #define HAVE_SYS_SELECT_H 1
00067 
00068 /* Define if you have the <sys/time.h> header file.  */
00069 /* #define HAVE_SYS_TIME_H 1 */
00070 
00071 /* Define if you have the <unistd.h> header file.  */
00072 /* #define HAVE_UNISTD_H 1 */
00073 
00074 /* Define if you have the m library (-lm).  */
00075 #define HAVE_LIBM 1
00076 
00077 /* Define if you have the png library (-lpng).  */
00078 #define HAVE_LIBPNG 1
00079 
00080 //#define HAVE_SDL 1
00081 
00082 /* The size of a `long', as computed by sizeof. */
00083 #define SIZEOF_LONG 8
00084 
00085 /* The size of a `long long', as computed by sizeof. */
00086 #undef SIZEOF_LONG_LONG
00087 
00088 /* Name of package */
00089 #define PACKAGE "crossfire-client-gtk"
00090 
00091 /* Version number of package */
00092 #define VERSION "2.x (snapshot)"
00093 
00094 /***********************/
00095 #ifdef WIN32
00096 /* Define Win32 specific stuff. */
00097 
00098 /* Exclude rarely-used stuff from Windows headers */
00099 #define WIN32_LEAN_AND_MEAN
00100 
00101 #include <windows.h>
00102 #include <winsock2.h>
00103 #include <winbase.h>
00104 
00105 #define BINDIR "."
00106 #define CF_DATADIR "."
00107 
00108 #define KeySym guint
00109 
00110 #define R_OK 04
00111 #define W_OK 02
00112 #define X_OK 04
00113 #define F_OK 00
00114 
00115 #define None NULL
00116 
00117 #define access(x,y) _access(x,y)
00118 
00119 /* Function prototypes */
00120 void gettimeofday(struct timeval *tv, void* unused);
00121 int strcasecmp(const char *s1, const char*s2);
00122 int strncasecmp(const char *s1, const char *s2, int n);
00123 
00124 /* Sleep(x) [Win32] sleeps x milliseconds.  sleep(x) [Unix] sleeps x seconds */
00125 #define usleep(x) Sleep((x)/1000)
00126 #define sleep(x) Sleep((x)*1000)
00127 #define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR)
00128 #define srandom srand
00129 #define random rand
00130 
00131 #define CFGTK2
00132 /* For GTK 2.2 Compatibility */
00133 #define GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
00134 #define GC GdkGC
00135 
00136 #define snprintf _snprintf
00137 #define vsnprintf _vsnprintf
00138 
00139 #define MINLOGLEVEL 0
00140 
00141 #endif /* WIN32 */
00142 
00143 #ifdef _MSC_VER
00144 /* Ignore spurious warnings */
00145 #pragma warning(disable: 4018) /* signed/unsigned mismatch */
00146 #pragma warning(disable: 4244) /* conversion from 'x' to 'x', possible loss of data */
00147 #pragma warning(disable: 4761) /* integral size mismatch in argument; conversion supplied */
00148 #endif
00149 
00150 /* New metaserver support */
00151 #define METASERVER2     1
00152 #define HAVE_CURL_CURL_H
00153 
00154 #endif /* __CROSSFIRE_CLIENT_CONFIG */