]> cygwin.com Git - cygwin-apps/setup.git/blob - win32.h
2002-04-29 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / win32.h
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>
13 * and Robert Collins <rbtcollins@hotmail.com>
14 *
15 */
16
17 /* The inital purpose of this file was limit the number of Win32 headers we
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
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
26
27 #define NOCOMATTRIBUTE
28
29 #include <stdarg.h>
30
31 #define WIN32_LEAN_AND_MEAN
32 /* We want a minimum IE version of 3 */
33 #define _WIN32_IE 0x0300
34 #include <windows.h>
35 #if HAVE_ALLOCA_H
36 #include <alloca.h>
37 #else
38 #ifndef alloca
39 #define alloca __builtin_alloca
40 #endif
41 #endif
42 #ifndef _MAX_PATH
43 #define _MAX_PATH MAX_PATH
44 #endif
45 #ifndef _access
46 #define _access access
47 #endif
48
49 #include <wininet.h>
50 #include <windowsx.h>
51
52 /* =========================== */
53 #ifdef __cplusplus
54 class Win32 {
55 public:
56 enum _os {
57 Win9x,
58 WinNT
59 };
60 static enum _os OS ();
61 };
62
63 #endif //_cplusplus
64 #endif // SETUP_WIN32_H
65
This page took 0.041091 seconds and 6 git commands to generate.