Merge trunk HEAD (r46369)
[reactos.git] / reactos / tools / rbuild / pch.h
index a39ec91..e98342b 100644 (file)
@@ -1,40 +1,81 @@
-// pre-compiled header stuff\r
-\r
-#ifndef PCH_H\r
-#define PCH_H\r
-\r
-#ifdef _MSC_VER\r
-#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information\r
-#endif//_MSC_VER\r
-\r
-#include <string>\r
-#include <vector>\r
-#include <map>\r
-#include <set>\r
-\r
-#include <stdarg.h>\r
-\r
-#ifdef _MSC_VER\r
-#define MAX_PATH _MAX_PATH\r
-#endif\r
-\r
-#ifndef WIN32\r
-#include <wctype.h>\r
-#include <math.h>\r
-\r
-inline char* strlwr ( char* str )\r
-{\r
-  char* p = str;\r
-  while ( *p )\r
-    *p++ = tolower(*p);\r
-  return str;\r
-}\r
-\r
-#define _finite __finite\r
-#define _isnan __isnan\r
-#define stricmp strcasecmp\r
-#define MAX_PATH PATH_MAX \r
-#define _MAX_PATH PATH_MAX\r
-#endif\r
-\r
-#endif//PCH_H\r
+/*
+ * Copyright (C) 2005 Casper S. Hornstrup
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#pragma once
+
+#ifdef _MSC_VER
+#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information
+#pragma warning ( disable : 4996 ) // CRT deprecate
+#endif//_MSC_VER
+
+#include <string>
+#include <vector>
+#include <map>
+#include <set>
+#include <utility>
+#include <bitset>
+
+#ifdef WIN32
+#include <windows.h>
+#ifndef MAX_PATH
+#define MAX_PATH _MAX_PATH
+#endif//MAX_PATH
+#else
+#include <unistd.h>
+#include <host/typedefs.h>
+typedef LONG *PLONG;
+
+#endif//WIN32
+
+#include <stdarg.h>
+#include <stdio.h>
+
+#ifndef WIN32
+#include <string.h>
+#include <ctype.h>
+#include <wctype.h>
+#include <math.h>
+
+inline char * strlwr(char *x)
+{
+        char  *y=x;
+
+        while (*y) {
+                *y=tolower(*y);
+                y++;
+        }
+        return x;
+}
+
+inline char *strupr(char *x)
+{
+        char  *y=x;
+
+        while (*y) {
+                *y=toupper(*y);
+                y++;
+        }
+        return x;
+}
+
+#define _finite __finite
+#define _isnan __isnan
+#define stricmp strcasecmp
+#define MAX_PATH PATH_MAX
+#define _MAX_PATH PATH_MAX
+#endif