Merging r37048, r37051, r37052, r37055 from the-real-msvc branch
[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 #endif//_MSC_VER
24
25 #include <string>
26 #include <vector>
27 #include <map>
28 #include <set>
29 #include <utility>
30
31 #ifdef WIN32
32 #include <windows.h>
33 #ifndef MAX_PATH
34 #define MAX_PATH _MAX_PATH
35 #endif//MAX_PATH
36 #else
37 #include <unistd.h>
38 #include <host/typedefs.h>
39 typedef LONG *PLONG;
40
41 #endif//WIN32
42
43 #include <stdarg.h>
44
45
46 #ifndef WIN32
47 #include <string.h>
48 #include <ctype.h>
49 #include <wctype.h>
50 #include <math.h>
51
52 inline char * strlwr(char *x)
53 {
54 char *y=x;
55
56 while (*y) {
57 *y=tolower(*y);
58 y++;
59 }
60 return x;
61 }
62
63 inline char *strupr(char *x)
64 {
65 char *y=x;
66
67 while (*y) {
68 *y=toupper(*y);
69 y++;
70 }
71 return x;
72 }
73
74 #define _finite __finite
75 #define _isnan __isnan
76 #define stricmp strcasecmp
77 #define MAX_PATH PATH_MAX
78 #define _MAX_PATH PATH_MAX
79 #endif
80
81 #endif//PCH_H