Move some more autogenerated files to intermediate directory
[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
30 #ifdef WIN32
31 #include <windows.h>
32 #ifndef MAX_PATH
33 #define MAX_PATH _MAX_PATH
34 #endif//MAX_PATH
35 #else
36 #include <unistd.h>
37 #endif//WIN32
38
39 #include <stdarg.h>
40
41
42 #ifndef WIN32
43 #include <string.h>
44 #include <ctype.h>
45 #include <wctype.h>
46 #include <math.h>
47
48 inline char * strlwr(char *x)
49 {
50 char *y=x;
51
52 while (*y) {
53 *y=tolower(*y);
54 y++;
55 }
56 return x;
57 }
58
59 inline char *strupr(char *x)
60 {
61 char *y=x;
62
63 while (*y) {
64 *y=toupper(*y);
65 y++;
66 }
67 return x;
68 }
69
70 #define _finite __finite
71 #define _isnan __isnan
72 #define stricmp strcasecmp
73 #define MAX_PATH PATH_MAX
74 #define _MAX_PATH PATH_MAX
75 #endif
76
77 #endif//PCH_H