Debian Codegraph @

common/config_winapi.h

raw symbols SCIP
1 /*
2 * Configuration file for WINAPI
3 *
4 * Copyright (C) 2012-2025, Joachim Metz <[email protected]>
5 *
6 * Refer to AUTHORS for acknowledgements.
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
22 #if !defined( _CONFIG_WINAPI_H )
23 #define _CONFIG_WINAPI_H
24
25 /* Define the earliest supported WINAPI version
26 #define WINVER 0x0501
27 */
28
29 /* If necessary make sure WINAPI is defined
30 */
31 #if defined( HAVE_WINDOWS_H ) || defined( __BORLANDC__ ) || defined( _MSC_VER )
32 #include <windows.h>
33 #endif
34
35 #if defined( WINAPI )
36
37 /* Define to the address where bug reports for this package should be sent.
38 */
39 #define PACKAGE_BUGREPORT "[email protected]"
40
41 /* Define the size of the integer for WINAPI
42 */
43 #if !defined( SIZEOF_INT )
44 #define SIZEOF_INT 4
45 #endif
46
47 /* Define the size of size_t for WINAPI
48 * Do not define when pyconfig.h has been included via python.h
49 */
50 #if !defined( HAVE_PYCONFIG_H )
51
52 #if !defined( SIZEOF_SIZE_T )
53 #if __WORDSIZE == 64
54 #define SIZEOF_SIZE_T 8
55 #else
56 #define SIZEOF_SIZE_T 4
57 #endif
58 #endif
59
60 #endif /* !defined( HAVE_PYCONFIG_H ) */
61
62 /* Define the size of the wide character for WINAPI
63 */
64 #if !defined( SIZEOF_WCHAR_T )
65 #define SIZEOF_WCHAR_T 2
66 #endif
67
68 /* Enable the DllMain function
69 */
70 #define HAVE_DLLMAIN 1
71
72 /* Enable verbose output
73 #define HAVE_VERBOSE_OUTPUT 1
74 */
75
76 /* Enable debug output
77 #define HAVE_DEBUG_OUTPUT 1
78 */
79
80 /* Enable both the narrow and wide character functions
81 */
82 #if !defined( HAVE_WIDE_CHARACTER_TYPE )
83 #define HAVE_WIDE_CHARACTER_TYPE 1
84 #endif
85
86 /* If not controlled by config.h enable multi-thread support
87 */
88 #if !defined( HAVE_CONFIG_H ) && !defined( HAVE_MULTI_THREAD_SUPPORT )
89 #define HAVE_MULTI_THREAD_SUPPORT 1
90 #endif
91
92 #endif /* defined( WINAPI ) */
93
94 #endif /* !defined( _CONFIG_WINAPI_H ) */
95