summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/scanner.l9
1 files changed, 9 insertions, 0 deletions
diff --git a/idlc/source/scanner.l b/idlc/source/scanner.l
index cfb9cb6d56ed..4c78ab968bd7 100644
--- a/idlc/source/scanner.l
+++ b/idlc/source/scanner.l
@@ -30,7 +30,16 @@
#include <rtl/character.hxx>
+#if defined _MSC_VER
+#pragma warning ( push )
+// Silence warnings about redefinition of INT8_MIN etc in stdint.h
+// The flex-generated workdir/LexTarget/idlc/source/scanner.cxx defines them prior to these includes
+#pragma warning ( disable : 4005 )
+#endif
#include <idlc.hxx>
+#if defined _MSC_VER
+#pragma warning ( pop )
+#endif
#include <errorhandler.hxx>
#include <fehelper.hxx>