Merge HAL changes 34743, 34812, 34839, 34917, 35515, 35771, 35902, 35904,
[reactos.git] / reactos / tools / rbuild / pch.h
1 /*
2 * Copyright (C) 2005 Casper S. Hornstrup
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 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 */
18 #ifndef PCH_H
19 #define PCH_H
20
21 #ifdef _MSC_VER
22 #pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information
23 #pragma warning ( disable : 4996 ) // CRT deprecate
24 #endif//_MSC_VER
25
26 #include <string>
27 #include <vector>
28 #include <map>
29 #include <set>
30 #include <utility>
31 #include <bitset>
32
33 #ifdef WIN32
34 #include <windows.h>
35 #ifndef MAX_PATH
36 #define MAX_PATH _MAX_PATH
37 #endif//MAX_PATH
38 #else
39 #include <unistd.h>
40 #include <host/typedefs.h>
41 typedef LONG *PLONG;
42
43 #endif//WIN32
44
45 #include <stdarg.h>
46 #include <stdio.h>
47
48 #ifndef WIN32
49 #include <string.h>
50 #include <ctype.h>
51 #include <wctype.h>
52 #include <math.h>
53
54 inline char * strlwr(char *x)
55 {
56 char *y=x;
57
58 while (*y) {
59 *y=tolower(*y);
60 y++;
61 }
62 return x;
63 }
64
65 inline char *strupr(char *x)
66 {
67 char *y=x;
68
69 while (*y) {
70 *y=toupper(*y);
71 y++;
72 }
73 return x;
74 }
75
76 #define _finite __finite
77 #define _isnan __isnan
78 #define stricmp strcasecmp
79 #define MAX_PATH PATH_MAX
80 #define _MAX_PATH PATH_MAX
81 #endif
82
83 #endif//PCH_H