summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/WSTransceiver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/WSTransceiver.cpp')
-rw-r--r--cpp/src/Ice/WSTransceiver.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/Ice/WSTransceiver.cpp b/cpp/src/Ice/WSTransceiver.cpp
index 4f17d4e8b81..d83e553308d 100644
--- a/cpp/src/Ice/WSTransceiver.cpp
+++ b/cpp/src/Ice/WSTransceiver.cpp
@@ -23,7 +23,13 @@
#include <IceUtil/DisableWarnings.h>
+// Python 2.7 under Windows.
+#if _MSC_VER == 1500
+typedef unsigned short uint16_t;
+#else
#include <stdint.h>
+#endif
+
#include <climits>
using namespace std;