summaryrefslogtreecommitdiff
path: root/cpp/include/Slice/Parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/Slice/Parser.h')
-rw-r--r--cpp/include/Slice/Parser.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/cpp/include/Slice/Parser.h b/cpp/include/Slice/Parser.h
index 261a106bb38..51fb288b318 100644
--- a/cpp/include/Slice/Parser.h
+++ b/cpp/include/Slice/Parser.h
@@ -7,8 +7,7 @@
//
// **********************************************************************
-#ifndef SLICE_PARSER_H
-#define SLICE_PARSER_H
+#pragma once
#include <IceUtil/Shared.h>
#include <IceUtil/Handle.h>
@@ -31,7 +30,7 @@
namespace Slice
{
-#if defined(_WIN32)
+#if defined(_WIN32) && !defined(__MINGW32__)
const IceUtil::Int64 Int32Max = 0x7fffffffi64;
const IceUtil::Int64 Int32Min = -Int32Max - 1i64;
@@ -1071,5 +1070,3 @@ private:
extern SLICE_API Unit* unit; // The current parser for bison/flex
}
-
-#endif