OLD | NEW |
1 /* src/config.h.in. Generated from configure.ac by autoheader. */ | 1 /* Generated from config.h.in during build configuration using CMake. */ |
2 | 2 |
3 /* Sometimes we accidentally #include this config.h instead of the one | 3 // Note: This header file is only used internally. It is not part of public inte
rface! |
4 in .. -- this is particularly true for msys/mingw, which uses the | 4 |
5 unix config.h but also runs code in the windows directory. | 5 // --------------------------------------------------------------------------- |
6 */ | 6 // System checks |
7 #ifdef __MINGW32__ | 7 |
8 #include "../config.h" | 8 // Define if you build this library for a MS Windows OS. |
9 #define GOOGLE_GFLAGS_WINDOWS_CONFIG_H_ | 9 #define OS_WINDOWS |
| 10 |
| 11 // Define if you have the <stdint.h> header file. |
| 12 #define HAVE_STDINT_H |
| 13 |
| 14 // Define if you have the <sys/types.h> header file. |
| 15 #define HAVE_SYS_TYPES_H |
| 16 |
| 17 // Define if you have the <inttypes.h> header file. |
| 18 /* #undef HAVE_INTTYPES_H */ |
| 19 |
| 20 // Define if you have the <sys/stat.h> header file. |
| 21 #define HAVE_SYS_STAT_H |
| 22 |
| 23 // Define if you have the <unistd.h> header file. |
| 24 /* #undef HAVE_UNISTD_H */ |
| 25 |
| 26 // Define if you have the <fnmatch.h> header file. |
| 27 /* #undef HAVE_FNMATCH_H */ |
| 28 |
| 29 // Define if you have the <shlwapi.h> header file (Windows 2000/XP). |
| 30 #define HAVE_SHLWAPI_H |
| 31 |
| 32 // Define if you have the strtoll function. |
| 33 /* #undef HAVE_STRTOLL */ |
| 34 |
| 35 // Define if you have the strtoq function. |
| 36 /* #undef HAVE_STRTOQ */ |
| 37 |
| 38 // Define if you have the <pthread.h> header file. |
| 39 /* #undef HAVE_PTHREAD */ |
| 40 |
| 41 // Define if your pthread library defines the type pthread_rwlock_t |
| 42 /* #undef HAVE_RWLOCK */ |
| 43 |
| 44 // gcc requires this to get PRId64, etc. |
| 45 #if defined(HAVE_INTTYPES_H) && !defined(__STDC_FORMAT_MACROS) |
| 46 # define __STDC_FORMAT_MACROS 1 |
10 #endif | 47 #endif |
11 | 48 |
12 #ifndef GOOGLE_GFLAGS_WINDOWS_CONFIG_H_ | 49 // --------------------------------------------------------------------------- |
13 #define GOOGLE_GFLAGS_WINDOWS_CONFIG_H_ | 50 // Package information |
14 | 51 |
15 /* Always the empty-string on non-windows systems. On windows, should be | 52 // Name of package. |
16 "__declspec(dllexport)". This way, when we compile the dll, we export our | 53 #define PACKAGE gflags |
17 functions/classes. It's safe to define this here because config.h is only | 54 |
18 used internally, to compile the DLL, and every DLL source file #includes | 55 // Define to the full name of this package. |
19 "config.h" before anything else. */ | 56 #define PACKAGE_NAME gflags |
20 #ifndef GFLAGS_DLL_DECL | 57 |
21 # define GFLAGS_IS_A_DLL 1 /* not set if you're statically linking */ | 58 // Define to the full name and version of this package. |
22 # define GFLAGS_DLL_DECL __declspec(dllexport) | 59 #define PACKAGE_STRING gflags 2.2.0 |
23 # define GFLAGS_DLL_DECL_FOR_UNITTESTS __declspec(dllimport) | 60 |
| 61 // Define to the one symbol short name of this package. |
| 62 #define PACKAGE_TARNAME gflags-2.2.0 |
| 63 |
| 64 // Define to the version of this package. |
| 65 #define PACKAGE_VERSION 2.2.0 |
| 66 |
| 67 // Version number of package. |
| 68 #define VERSION PACKAGE_VERSION |
| 69 |
| 70 // Define to the address where bug reports for this package should be sent. |
| 71 #define PACKAGE_BUGREPORT https://github.com/schuhschuh/gflags/issues |
| 72 |
| 73 // --------------------------------------------------------------------------- |
| 74 // Path separator |
| 75 #ifndef PATH_SEPARATOR |
| 76 # ifdef OS_WINDOWS |
| 77 # define PATH_SEPARATOR '\\' |
| 78 # else |
| 79 # define PATH_SEPARATOR '/' |
| 80 # endif |
24 #endif | 81 #endif |
25 | 82 |
26 /* Namespace for Google classes */ | 83 // --------------------------------------------------------------------------- |
27 #define GOOGLE_NAMESPACE ::google | 84 // Windows |
28 | 85 |
29 /* Define to 1 if you have the <dlfcn.h> header file. */ | 86 // Whether gflags library is a DLL. |
30 #undef HAVE_DLFCN_H | 87 #ifndef GFLAGS_IS_A_DLL |
31 | 88 # define GFLAGS_IS_A_DLL 0 |
32 /* Define to 1 if you have the <fnmatch.h> header file. */ | |
33 #undef HAVE_FNMATCH_H | |
34 | |
35 /* Define to 1 if you have the <inttypes.h> header file. */ | |
36 #undef HAVE_INTTYPES_H | |
37 | |
38 /* Define to 1 if you have the <memory.h> header file. */ | |
39 #undef HAVE_MEMORY_H | |
40 | |
41 /* define if the compiler implements namespaces */ | |
42 #define HAVE_NAMESPACES 1 | |
43 | |
44 /* Define if you have POSIX threads libraries and header files. */ | |
45 #undef HAVE_PTHREAD | |
46 | |
47 /* Define to 1 if you have the `putenv' function. */ | |
48 #define HAVE_PUTENV 1 | |
49 | |
50 /* Define to 1 if you have the `setenv' function. */ | |
51 #undef HAVE_SETENV | |
52 | |
53 /* Define to 1 if you have the <stdint.h> header file. */ | |
54 #undef HAVE_STDINT_H | |
55 | |
56 /* Define to 1 if you have the <stdlib.h> header file. */ | |
57 #define HAVE_STDLIB_H 1 | |
58 | |
59 /* Define to 1 if you have the <strings.h> header file. */ | |
60 #undef HAVE_STRINGS_H | |
61 | |
62 /* Define to 1 if you have the <string.h> header file. */ | |
63 #define HAVE_STRING_H 1 | |
64 | |
65 /* Define to 1 if you have the `strtoll' function. */ | |
66 #define HAVE_STRTOLL 1 | |
67 | |
68 /* Define to 1 if you have the `strtoq' function. */ | |
69 #define HAVE_STRTOQ 1 | |
70 | |
71 /* Define to 1 if you have the <sys/stat.h> header file. */ | |
72 #define HAVE_SYS_STAT_H 1 | |
73 | |
74 /* Define to 1 if you have the <sys/types.h> header file. */ | |
75 #define HAVE_SYS_TYPES_H 1 | |
76 | |
77 /* Define to 1 if you have the <unistd.h> header file. */ | |
78 #undef HAVE_UNISTD_H | |
79 | |
80 /* define if your compiler has __attribute__ */ | |
81 #undef HAVE___ATTRIBUTE__ | |
82 | |
83 /* Define to the sub-directory in which libtool stores uninstalled libraries. | |
84 */ | |
85 #undef LT_OBJDIR | |
86 | |
87 /* Name of package */ | |
88 #undef PACKAGE | |
89 | |
90 /* Define to the address where bug reports for this package should be sent. */ | |
91 #undef PACKAGE_BUGREPORT | |
92 | |
93 /* Define to the full name of this package. */ | |
94 #undef PACKAGE_NAME | |
95 | |
96 /* Define to the full name and version of this package. */ | |
97 #undef PACKAGE_STRING | |
98 | |
99 /* Define to the one symbol short name of this package. */ | |
100 #undef PACKAGE_TARNAME | |
101 | |
102 /* Define to the home page for this package. */ | |
103 #undef PACKAGE_URL | |
104 | |
105 /* Define to the version of this package. */ | |
106 #undef PACKAGE_VERSION | |
107 | |
108 /* Define to necessary symbol if this constant uses a non-standard name on | |
109 your system. */ | |
110 #undef PTHREAD_CREATE_JOINABLE | |
111 | |
112 /* Define to 1 if you have the ANSI C header files. */ | |
113 #define STDC_HEADERS 1 | |
114 | |
115 /* the namespace where STL code like vector<> is defined */ | |
116 #define STL_NAMESPACE std | |
117 | |
118 /* Version number of package */ | |
119 #undef VERSION | |
120 | |
121 /* Stops putting the code inside the Google namespace */ | |
122 #define _END_GOOGLE_NAMESPACE_ } | |
123 | |
124 /* Puts following code inside the Google namespace */ | |
125 #define _START_GOOGLE_NAMESPACE_ namespace google { | |
126 | |
127 // --------------------------------------------------------------------- | |
128 // Extra stuff not found in config.h.in | |
129 | |
130 // This must be defined before the windows.h is included. It's needed | |
131 // for mutex.h, to give access to the TryLock method. | |
132 #ifndef _WIN32_WINNT | |
133 # define _WIN32_WINNT 0x0400 | |
134 #endif | 89 #endif |
135 | 90 |
136 // TODO(csilvers): include windows/port.h in every relevant source file instead? | 91 // Always export symbols when compiling a shared library as this file is only |
137 #include "windows/port.h" | 92 // included by internal modules when building the gflags library itself. |
| 93 // The gflags_declare.h header file will set it to import these symbols otherwis
e. |
| 94 #ifndef GFLAGS_DLL_DECL |
| 95 # if GFLAGS_IS_A_DLL && defined(_MSC_VER) |
| 96 # define GFLAGS_DLL_DECL __declspec(dllexport) |
| 97 # else |
| 98 # define GFLAGS_DLL_DECL |
| 99 # endif |
| 100 #endif |
| 101 // Flags defined by the gflags library itself must be exported |
| 102 #ifndef GFLAGS_DLL_DEFINE_FLAG |
| 103 # define GFLAGS_DLL_DEFINE_FLAG GFLAGS_DLL_DECL |
| 104 #endif |
138 | 105 |
139 #endif /* GOOGLE_GFLAGS_WINDOWS_CONFIG_H_ */ | 106 #ifdef OS_WINDOWS |
| 107 // The unittests import the symbols of the shared gflags library |
| 108 # if GFLAGS_IS_A_DLL && defined(_MSC_VER) |
| 109 # define GFLAGS_DLL_DECL_FOR_UNITTESTS __declspec(dllimport) |
| 110 # endif |
| 111 # include "windows_port.h" |
| 112 #endif |
OLD | NEW |