39117f1d846ab839520f51adcc053fe31456f5a5
[supertux.git] / mk / msvc / config.h
1 /* config.h.in.  Generated from configure.ac by autoheader.  */
2
3 /* Include pthread support for binary relocation? */
4 //#undef BR_PTHREAD
5
6 /* define to compile in debug checks */
7 #define DEBUG
8
9 /* Use binary relocation? */
10 //#undef ENABLE_BINRELOC
11
12 /* define if sqdbg should be enabled */
13 //#undef ENABLE_SQDBG
14
15 /* Use the Apple OpenGL framework. */
16 //#undef HAVE_APPLE_OPENGL_FRAMEWORK
17
18 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
19    */
20 //#undef HAVE_DIRENT_H
21
22 /* Define if you have the iconv() function. */
23 //#undef HAVE_ICONV
24
25 /* Define to 1 if you have the <inttypes.h> header file. */
26 //#undef HAVE_INTTYPES_H
27
28 /* Define to 1 if you have the `pthread' library (-lpthread). */
29 //#undef HAVE_LIBPTHREAD
30
31 /* Define to 1 if you have the <memory.h> header file. */
32 #define HAVE_MEMORY_H 1
33
34 /* Define to 1 if you have the `mkdir' function. */
35 //#define HAVE_MKDIR
36
37 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
38 //#undef HAVE_NDIR_H
39
40 /* Define if you have POSIX threads libraries and header files. */
41 //#undef HAVE_PTHREAD
42
43 /* Define to 1 if you have the <stdint.h> header file. */
44 //#undef HAVE_STDINT_H
45
46 /* Define to 1 if you have the <stdlib.h> header file. */
47 #define HAVE_STDLIB_H 1
48
49 /* Define to 1 if you have the `strdup' function. */
50 #define HAVE_STRDUP 1
51
52 /* Define to 1 if you have the <strings.h> header file. */
53 //#define HAVE_STRINGS_H
54
55 /* Define to 1 if you have the <string.h> header file. */
56 #define HAVE_STRING_H 1
57
58 /* Define to 1 if you have the `strstr' function. */
59 #define HAVE_STRSTR 1
60
61 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
62    */
63 //#undef HAVE_SYS_DIR_H
64
65 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
66    */
67 //#undef HAVE_SYS_NDIR_H
68
69 /* Define to 1 if you have the <sys/stat.h> header file. */
70 //#undef HAVE_SYS_STAT_H
71
72 /* Define to 1 if you have the <sys/types.h> header file. */
73 //#undef HAVE_SYS_TYPES_H
74
75 /* Define to 1 if you have the <unistd.h> header file. */
76 //#undef HAVE_UNISTD_H
77
78 /* Define to 1 if you have the <windows.h> header file. */
79 #define HAVE_WINDOWS_H 1
80
81 /* Define as const if the declaration of iconv() needs const. */
82 #define ICONV_CONST const
83
84 /* Define to the address where bug reports for this package should be sent. */
85 #define PACKAGE_BUGREPORT ""
86
87 /* Define to the full name of this package. */
88 #define PACKAGE_NAME "supertux"
89
90 /* Define to the full name and version of this package. */
91 #define PACKAGE_STRING "supertux 0.3.0-SVN"
92
93 /* Define to the one symbol short name of this package. */
94 #define PACKAGE_TARNAME "supertux"
95
96 /* Define to the version of this package. */
97 #define PACKAGE_VERSION "0.3.0-SVN"
98
99 /* Define to necessary symbol if this constant uses a non-standard name on
100    your system. */
101 //#undef PTHREAD_CREATE_JOINABLE
102
103 /* The size of a `void *', as computed by sizeof. */
104 #define SIZEOF_VOID_P 4
105
106 /* Define to 1 if you have the ANSI C header files. */
107 #define STDC_HEADERS 1
108
109 /* Define to 1 if your processor stores words with the most significant byte
110    first (like Motorola and SPARC, unlike Intel and VAX). */
111 // #undef WORDS_BIGENDIAN
112
113 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
114    `char[]'. */
115 // #undef YYTEXT_POINTER
116
117 /* Define to empty if `const' does not conform to ANSI C. */
118 // #undef const
119
120
121 #if SIZEOF_VOID_P == 8
122 #define _SQ64
123 #endif
124
125 /* Disable some very annoying warnings */
126 #pragma warning(disable: 4244)
127 #pragma warning(disable: 4267)
128 #pragma warning(disable: 4800)
129 #pragma warning(disable: 4103)
130
131 /* some stuff is not in standard lib in msvc */
132 #define _CRT_SECURE_NO_DEPRECATE
133 #define snprintf _snprintf
134 #define strcasecmp _strcmpi
135 #define strncasecmp _strncmpi
136 #define strdup _strdup
137
138 #ifndef M_PI
139 #define M_PI        3.14159265358979323846
140 #endif
141 #ifndef M_PI_2
142 #define M_PI_2      (3.14159265358979323846/2.0)
143 #endif
144
145 static inline int roundf(float val)
146 {
147   if(val > 0) {
148     return (int) (val + 0.5f);
149   } else {
150     return (int) (val - 0.5f);
151   }
152 }
153
154 // msvc has no sscanf it seems, this breaks demo recording, but who cares...
155 static inline int sscanf(...)
156 {
157   return -1;
158 }