summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.com>2009-09-08 15:10:10 +0200
committerMartin Sustrik <sustrik@fastmq.com>2009-09-08 15:10:10 +0200
commitef34c94c3a9cbda87b0a4512ec56415b023aff0b (patch)
tree6ecc8e0c2596738ae82041bc21d70a579c908623 /python
parentb3fc14522574ccad233bee02ea135d8a93fb2441 (diff)
win build for python
Diffstat (limited to 'python')
-rw-r--r--python/pyzmq.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/pyzmq.cpp b/python/pyzmq.cpp
index d1f5457..a373988 100644
--- a/python/pyzmq.cpp
+++ b/python/pyzmq.cpp
@@ -25,6 +25,11 @@
#include "../c/zmq.h"
+#if defined _MSC_VER
+#pragma warning (push)
+#pragma warning (disable:4996)
+#endif
+
struct context_t
{
PyObject_HEAD
@@ -489,3 +494,7 @@ PyMODINIT_FUNC initlibpyzmq ()
PyDict_SetItemString (dict, "IDENTITY", t);
Py_DECREF (t);
}
+
+#if defined _MSC_VER
+#pragma warning (pop)
+#endif