summaryrefslogtreecommitdiff
path: root/tools/source/datetime/tdate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source/datetime/tdate.cxx')
-rw-r--r--tools/source/datetime/tdate.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/source/datetime/tdate.cxx b/tools/source/datetime/tdate.cxx
index 899f5c1b819e..93cf49b0ce9c 100644
--- a/tools/source/datetime/tdate.cxx
+++ b/tools/source/datetime/tdate.cxx
@@ -18,6 +18,9 @@
*/
#if defined(_WIN32)
+#if !defined WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN
+#endif
#include <windows.h>
#else
#include <time.h>