]>
Commit | Line | Data |
---|---|---|
23c9e63c DD |
1 | /* |
2 | * Copyright (c) 2000, Red Hat, Inc. | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or modify | |
5 | * it under the terms of the GNU General Public License as published by | |
6 | * the Free Software Foundation; either version 2 of the License, or | |
7 | * (at your option) any later version. | |
8 | * | |
9 | * A copy of the GNU General Public License can be found at | |
10 | * http://www.gnu.org/ | |
11 | * | |
12 | * Written by DJ Delorie <dj@cygnus.com> | |
ad3c7385 | 13 | * and Robert Collins <rbtcollins@hotmail.com> |
23c9e63c DD |
14 | * |
15 | */ | |
16 | ||
ad3c7385 | 17 | /* The inital purpose of this file was limit the number of Win32 headers we |
23c9e63c DD |
18 | actually have to parse. The Setup program only uses a few of them, |
19 | so there's no point in parsing them all (even lean-n-mean). Doing | |
ad3c7385 RC |
20 | this cuts compile time in half. Now it's also the header for the Win32 |
21 | class which provides runtime information about the OS | |
22 | */ | |
23 | ||
24 | #ifndef SETUP_WIN32_H | |
25 | #define SETUP_WIN32_H | |
23c9e63c | 26 | |
23c9e63c DD |
27 | #define NOCOMATTRIBUTE |
28 | ||
29 | #include <stdarg.h> | |
23c9e63c | 30 | |
ed96c6da | 31 | #define WIN32_LEAN_AND_MEAN |
cbfc4215 RC |
32 | /* We want a minimum IE version of 3 */ |
33 | #define _WIN32_IE 0x0300 | |
666bf37d RC |
34 | /* libstdc++-v3 _really_ dislikes min & max defined as macros. */ |
35 | #define NOMINMAX | |
ed96c6da | 36 | #include <windows.h> |
45e01f23 RC |
37 | #if HAVE_ALLOCA_H |
38 | #include <alloca.h> | |
39 | #else | |
e7d67c03 | 40 | #ifndef alloca |
f71e9756 | 41 | #define alloca __builtin_alloca |
e7d67c03 | 42 | #endif |
45e01f23 RC |
43 | #endif |
44 | #ifndef _MAX_PATH | |
45 | #define _MAX_PATH MAX_PATH | |
46 | #endif | |
47 | #ifndef _access | |
48 | #define _access access | |
49 | #endif | |
ed96c6da EB |
50 | |
51 | #include <wininet.h> | |
23c9e63c | 52 | #include <windowsx.h> |
ad3c7385 RC |
53 | |
54 | /* =========================== */ | |
55 | #ifdef __cplusplus | |
56 | class Win32 { | |
57 | public: | |
58 | enum _os { | |
59 | Win9x, | |
60 | WinNT | |
61 | }; | |
62 | static enum _os OS (); | |
63 | }; | |
64 | ||
65 | #endif //_cplusplus | |
66 | #endif // SETUP_WIN32_H | |
5e0464a1 | 67 |