-// os_win32.h copyright "Ruurd A. Reitsma" <R.A.Reitsma@wbmt.tudelft.nl>
-
-#ifndef _OS_WIN32_H_
-#define _OS_WIN32_H_
-
-//Avoid zillions of windows includes
-#ifndef WIN32_LEAN_AND_MEAN
-#define WIN32_LEAN_AND_MEAN
-#endif
-
-#include <windows.h>
-
-// Avoid some very annoying macros from MFC
-# undef max
-# undef min
-
-#if defined( __SGI_STL_PORT )
-
- namespace std {
- // These overloads prevent ambiguity errors when signed and unsigned integers are compared.
- inline long min(long x, long y) {return std::min(x, y);}
- inline long max(long x, long y) {return std::max(x, y);}
- }
-
-#else // defined( __SGI_STL_PORT )
- namespace std {
- // These overloads prevent ambiguity errors when int, long and unsigned int and int are compared.
-
- inline int min(int x, int y) { return x < y ? x : y; }
- inline int max(int x, int y) { return x > y ? x : y; }
-
- inline unsigned int min(unsigned int x, unsigned int y) { return x < y ? x : y; }
- inline unsigned int max(unsigned int x, unsigned int y) { return x > y ? x : y; }
-
- inline long min(long x, long y) { return x < y ? x : y; }
- inline long max(long x, long y) { return x > y ? x : y; }
-
- inline long min(int x, long y) { return x < y ? x : y; }
- inline long max(int x, long y) { return x > y ? x : y; }
-
- inline long min(long x, int y) { return x < y ? x : y; }
- inline long max(long x, int y) { return x > y ? x : y; }
-
- inline unsigned long min(unsigned long x, unsigned long y) { return x < y ? x : y; }
- inline unsigned long max(unsigned long x, unsigned long y) { return x > y ? x : y; }
-
- inline double min(double x, double y) { return x < y ? x : y; }
- inline double max(double x, double y) { return x > y ? x : y; }
- }
-
-#endif // defined( __SGI_STL_PORT )
-
-#ifdef __cplusplus
-extern "C" {
+// -*- C++ -*-
+/**
+ * \file os_win32.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS.
+ *
+ * These classes should be used only on Windows machines.
+ */
+
+#ifndef OS_WIN32_H
+#define OS_WIN32_H
+
+#include <string>
+
+#if !defined(_WIN32)
+# error os_win32.h should be compiled only under Windows.