summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/ScannerConfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/IceUtil/ScannerConfig.h')
-rw-r--r--cpp/include/IceUtil/ScannerConfig.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/cpp/include/IceUtil/ScannerConfig.h b/cpp/include/IceUtil/ScannerConfig.h
new file mode 100644
index 00000000000..aa3786ecc48
--- /dev/null
+++ b/cpp/include/IceUtil/ScannerConfig.h
@@ -0,0 +1,23 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2012 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+#pragma once
+
+//
+// COMPILERFIX: VC compilers does not provide stdint.h header until VC100
+// the header must be included before that macros for integral types
+// in flex generated Scanners are defined.
+//
+// in C99 conformant compilers we don't need to include it because the
+// header is included by inttypes.h, that is included by the gernated
+// Scanners.
+//
+#if defined(_MSC_VER) && (_MSC_VER >= 1600)
+# include <stdint.h>
+#endif \ No newline at end of file