aboutsummaryrefslogtreecommitdiff
path: root/odb/details/win32/exceptions.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-09 09:43:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-09 09:43:37 +0200
commitbdb356fd270bd80223837bce6de5cdc3b67565ea (patch)
tree8b175312605e31b30ebe028e97a67bd9bc850ac7 /odb/details/win32/exceptions.hxx
parent21b15d068cf8347162719428aace3222cad3690c (diff)
Include lean windows.h
Diffstat (limited to 'odb/details/win32/exceptions.hxx')
-rw-r--r--odb/details/win32/exceptions.hxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/odb/details/win32/exceptions.hxx b/odb/details/win32/exceptions.hxx
index b9ccf50..47243cd 100644
--- a/odb/details/win32/exceptions.hxx
+++ b/odb/details/win32/exceptions.hxx
@@ -8,7 +8,13 @@
#include <odb/pre.hxx>
-#include <windows.h>
+#ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN
+# include <windows.h>
+# undef WIN32_LEAN_AND_MEAN
+#else
+# include <windows.h>
+#endif
#include <odb/details/export.hxx>
#include <odb/details/exception.hxx>