1 /* bzflag
2  * Copyright (c) 1993-2021 Tim Riker
3  *
4  * This package is free software;  you can redistribute it and/or
5  * modify it under the terms of the license found in the file
6  * named COPYING that should have accompanied this file.
7  *
8  * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
9  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
10  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11  */
12 
13 /* win32/config.h.  Generated by hand by Jeff Myers 6-12-03 */
14 /* this config is just for visual C++ since it doesn't use automake*/
15 
16 // Don't complain about using "insecure" string functions.
17 // This is safe, Microsoft says they will not be removed.
18 #define _CRT_SECURE_NO_DEPRECATE 1
19 
20 // We use some POSIX names, but defining _POSIX_ breaks some other code.
21 // Tell VC8 to just shut up about it.  This is possibly unsafe, as the
22 // affected functions may be removed in the future.
23 #define _CRT_NONSTDC_NO_DEPRECATE 1
24 
25 #include <stdio.h>
26 
27 /* Building regex */
28 #define HAVE_REGEX_H 1
29 
30 /* Debug Rendering */
31 /* #undef DEBUG_RENDERING */
32 
33 /* Enabling Robots */
34 #define ROBOT 1
35 
36 /* On windows, strcasecmp is really strcmp */
37 #define HAVE_STRICMP 1
38 
39 /* Use modern template for std::count */
40 #define HAVE_STD__COUNT 1
41 
42 /* Use modern template for std::isnan */
43 #define HAVE_STD__ISNAN 1
44 
45 /* We have float math functions */
46 #define HAVE_ASINF 1
47 #define HAVE_ATAN2F 1
48 #define HAVE_ATANF 1
49 #define HAVE_COSF 1
50 #define HAVE_EXPF 1
51 #define HAVE_FABSF 1
52 #define HAVE_FLOORF 1
53 #define HAVE_FMODF 1
54 #define HAVE_LOGF 1
55 #define HAVE_POWF 1
56 #define HAVE_SINF 1
57 #define HAVE_SQRTF 1
58 #define HAVE_TANF 1
59 #define HAVE_LOG10F 1
60 
61 /* but we don't have this one */
62 /* #undef HAVE_HYPOTF */
63 
64 /* Define to 1 if you have regex stuff available */
65 /* undef HAVE_REGEX_H */
66 
67 // define our OS
68 
69 #ifndef BZ_BUILD_OS
70 #ifdef _DEBUG
71 #define DEBUG
72 #define DEBUG_RENDERING
73 #ifdef _M_X64
74 #define BZ_BUILD_OS         "Win64VC14Dbg"
75 #else
76 #define BZ_BUILD_OS         "Win32VC14Dbg"
77 #endif
78 #else
79 #ifdef _M_X64
80 #define BZ_BUILD_OS         "Win64VC14"
81 #else
82 #define BZ_BUILD_OS         "Win32VC14"
83 #endif
84 #endif //_DEBUG
85 #endif //BZ_BUILD_OS
86 
87 /* Define to 1 if you have the `WaitForSingleObject' function. */
88 #define HAVE_WAITFORSINGLEOBJECT 1
89 
90 /* Define to 1 if you have the `Sleep' function. */
91 #define HAVE_SLEEP 1
92 
93 /* Define to 1 if you have the `_stricmp' function */
94 #define HAVE__STRICMP 1
95 
96 /* Define to 1 if you have the `_strnicmp' function */
97 #define HAVE__STRNICMP 1
98 
99 /* Define to 1 if you have the `_vsnprintf' function */
100 #define HAVE__VSNPRINTF 1
101 
102 /* Define if you wish to build exporting the bzflag API for plugins */
103 #define BZ_PLUGINS 1
104 
105 // Use SDL2
106 #define HAVE_SDL 1
107 #define HAVE_SDL2 1
108 #define HAVE_SDL2_SDL_H 1
109 
110 #define HAVE_STD__MIN 1
111 #define HAVE_STD__MAX 1
112 
113 #define HAVE_ARES_LIBRARY_INIT 1
114 
115 #ifndef DEBUG_TRACE
116 #define DEBUG_TRACE
W32_DEBUG_TRACE(const char * buffer)117 inline void W32_DEBUG_TRACE (const char* buffer )
118 {
119     printf("%s",buffer);
120 }
121 #endif
122 
123 #ifndef in_addr_t
124 #define in_addr_t unsigned long
125 #endif
126