summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Scanner.l
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2012-08-08 01:33:30 +0200
committerJose <jose@zeroc.com>2012-08-08 01:33:30 +0200
commit6ed900b96833a2bfd1a37c7a6ba2112c04312b49 (patch)
tree07f1fbb33f7da9084198f55082d582cb6194eb38 /cpp/src/Slice/Scanner.l
parentfixes for Scanner.l & VC comilers (diff)
downloadice-6ed900b96833a2bfd1a37c7a6ba2112c04312b49.tar.bz2
ice-6ed900b96833a2bfd1a37c7a6ba2112c04312b49.tar.xz
ice-6ed900b96833a2bfd1a37c7a6ba2112c04312b49.zip
remove ScannerConfig.h > move fixes to Scanner.l
Diffstat (limited to 'cpp/src/Slice/Scanner.l')
-rw-r--r--cpp/src/Slice/Scanner.l9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp/src/Slice/Scanner.l b/cpp/src/Slice/Scanner.l
index fc130fe6c8d..2363abeb847 100644
--- a/cpp/src/Slice/Scanner.l
+++ b/cpp/src/Slice/Scanner.l
@@ -9,7 +9,6 @@
//
// **********************************************************************
-#include <IceUtil/ScannerConfig.h>
#include <Slice/GrammarUtil.h> // Before Grammer.h, so that YYSTYPE is defined
#include <Slice/Grammar.h>
#include <IceUtil/InputUtil.h>
@@ -30,6 +29,14 @@
# pragma warning( 4 : 4244 )
#endif
+#ifdef _MSC_VER
+# ifdef slice_wrap
+# undef slice_wrap
+# define slice_wrap() 1
+# endif
+# define YY_NO_UNISTD_H
+#endif
+
using namespace std;
using namespace Slice;