Crossfire Client, Branches
R11627
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
config.h
Go to the documentation of this file.
1
/* win32/config.h hand tweaked defines and modified in other ways to work with Visual Studio */
2
#ifndef __CROSSFIRE_CLIENT_CONFIG
3
#define __CROSSFIRE_CLIENT_CONFIG
4
5
/* common/config.h. Generated automatically by configure. */
6
/* config.h.in. Generated automatically from configure.in by autoheader 2.13. */
7
8
/* Define to empty if the keyword does not work. */
9
/* #undef const */
10
11
/* Define if you don't have vprintf but do have _doprnt. */
12
/* #undef HAVE_DOPRNT */
13
14
/* Define if you have the vprintf function. */
15
#define HAVE_VPRINTF 1
16
17
/* Define if you have the ANSI C header files. */
18
#define STDC_HEADERS 1
19
20
/* Define if you can safely include both <sys/time.h> and <time.h>. */
21
#define TIME_WITH_SYS_TIME 1
22
23
/* Define if your processor stores words with the most significant
24
byte first (like Motorola and SPARC, unlike Intel and VAX). */
25
/* #undef WORDS_BIGENDIAN */
26
27
/* Define if the X Window System is missing or not being used. */
28
/* #undef X_DISPLAY_MISSING */
29
30
/* #undef ENABLE_NLS */
31
/* #undef HAVE_CATGETS */
32
/* #undef HAVE_GETTEXT */
33
/* #undef HAVE_LC_MESSAGES */
34
/* #undef HAVE_STPCPY */
35
/* #undef HAVE_LIBSM */
36
/* #undef HAVE_LIBXPM */
37
38
/* Define if you have the mkdir function. */
39
#define HAVE_MKDIR 1
40
41
/* Define if you have the socket function. */
42
#define HAVE_SOCKET 1
43
44
/* Define if you have the strcspn function. */
45
#define HAVE_STRCSPN 1
46
47
/* Define if you have the sysconf function. */
48
/* #define HAVE_SYSCONF 1 */
49
50
/* Define if you have the <X11/SM/SMlib.h> header file. */
51
/* #undef HAVE_X11_SM_SMLIB_H */
52
53
/* Define if you have the <dmalloc.h> header file. */
54
/* #undef HAVE_DMALLOC_H */
55
56
/* Define if you have the <fcntl.h> header file. */
57
#define HAVE_FCNTL_H 1
58
59
/* Define if you have the <string.h> header file. */
60
#define HAVE_STRING_H 1
61
62
/* Define if you have the <sys/ioctl.h> header file. */
63
#define HAVE_SYS_IOCTL_H 1
64
65
/* Define if you have the <sys/select.h> header file. */
66
#define HAVE_SYS_SELECT_H 1
67
68
/* Define if you have the <sys/time.h> header file. */
69
/* #define HAVE_SYS_TIME_H 1 */
70
71
/* Define if you have the <unistd.h> header file. */
72
/* #define HAVE_UNISTD_H 1 */
73
74
/* Define if you have the m library (-lm). */
75
#define HAVE_LIBM 1
76
77
/* Define if you have the png library (-lpng). */
78
#define HAVE_LIBPNG 1
79
80
//#define HAVE_SDL 1
81
82
/* The size of a `long', as computed by sizeof. */
83
#define SIZEOF_LONG 8
84
85
/* The size of a `long long', as computed by sizeof. */
86
#undef SIZEOF_LONG_LONG
87
88
/* Name of package */
89
#define PACKAGE "crossfire-client-gtk"
90
91
/* Version number of package */
92
#define VERSION "2.x (snapshot)"
93
94
/***********************/
95
#ifdef WIN32
96
/* Define Win32 specific stuff. */
97
98
/* Exclude rarely-used stuff from Windows headers */
99
#define WIN32_LEAN_AND_MEAN
100
101
#include <windows.h>
102
#include <winsock2.h>
103
#include <winbase.h>
104
105
#define BINDIR "."
106
#define CF_DATADIR "."
107
108
#define KeySym guint
109
110
#define R_OK 04
111
#define W_OK 02
112
#define X_OK 04
113
#define F_OK 00
114
115
#define None NULL
116
117
#define access(x,y) _access(x,y)
118
119
/* Function prototypes */
120
void
gettimeofday(
struct
timeval *tv,
void
* unused);
121
int
strcasecmp(
const
char
*s1,
const
char
*s2);
122
int
strncasecmp(
const
char
*s1,
const
char
*s2,
int
n);
123
124
/* Sleep(x) [Win32] sleeps x milliseconds. sleep(x) [Unix] sleeps x seconds */
125
#define usleep(x) Sleep((x)/1000)
126
#define sleep(x) Sleep((x)*1000)
127
#define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR)
128
#define srandom srand
129
#define random rand
130
131
#define CFGTK2
132
/* For GTK 2.2 Compatibility */
133
#define GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
134
#define GC GdkGC
135
136
#define snprintf _snprintf
137
#define vsnprintf _vsnprintf
138
139
#define MINLOGLEVEL 0
140
141
#endif
/* WIN32 */
142
143
#ifdef _MSC_VER
144
/* Ignore spurious warnings */
145
#pragma warning(disable: 4018)
/* signed/unsigned mismatch */
146
#pragma warning(disable: 4244)
/* conversion from 'x' to 'x', possible loss of data */
147
#pragma warning(disable: 4761)
/* integral size mismatch in argument; conversion supplied */
148
#endif
149
150
/* New metaserver support */
151
#define METASERVER2 1
152
#define HAVE_CURL_CURL_H
153
154
#endif
/* __CROSSFIRE_CLIENT_CONFIG */
crossfire-code
client
branches
1.12
gtk
win32
config.h
Generated on Fri Nov 16 2018 02:05:35 for Crossfire Client, Branches by
1.8.6