1 /*
2  * Configuration file for WINAPI
3  *
4  * Copyright (C) 2010-2021, Joachim Metz <joachim.metz@gmail.com>
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		"joachim.metz@gmail.com"
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  */
49 #if !defined( SIZEOF_SIZE_T )
50 #if __WORDSIZE == 64
51 #define SIZEOF_SIZE_T			8
52 #else
53 #define SIZEOF_SIZE_T			4
54 #endif
55 #endif
56 
57 /* Define the size of the wide character for WINAPI
58  */
59 #if !defined( SIZEOF_WCHAR_T )
60 #define SIZEOF_WCHAR_T			2
61 #endif
62 
63 /* Enable the DllMain function
64  */
65 #define HAVE_DLLMAIN			1
66 
67 /* Enable verbose output
68 #define HAVE_VERBOSE_OUTPUT		1
69  */
70 
71 /* Enable debug output
72 #define HAVE_DEBUG_OUTPUT		1
73  */
74 
75 /* Enable both the narrow and wide character functions
76  */
77 #if !defined( HAVE_WIDE_CHARACTER_TYPE )
78 #define HAVE_WIDE_CHARACTER_TYPE	1
79 #endif
80 
81 /* If not controlled by config.h enable multi-thread support
82  */
83 #if !defined( HAVE_CONFIG_H ) && !defined( HAVE_MULTI_THREAD_SUPPORT )
84 #define HAVE_MULTI_THREAD_SUPPORT	1
85 #endif
86 
87 #endif /* defined( WINAPI ) */
88 
89 #endif /* !defined( _CONFIG_WINAPI_H ) */
90 
91