summaryrefslogtreecommitdiff
path: root/bindings/c
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-02-23 23:28:25 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-02-23 23:28:25 +0100
commit2441ef11a22170499d7ae12865dc98a61230f7ed (patch)
tree8583021a2463df908cd1f5683366b72b0bc578f2 /bindings/c
parent2dd55605ea3956413cb25cab705ffdbdb2e00da5 (diff)
zmq_errno helper function added
Diffstat (limited to 'bindings/c')
-rw-r--r--bindings/c/zmq.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/bindings/c/zmq.h b/bindings/c/zmq.h
index c6d4692..254971d 100644
--- a/bindings/c/zmq.h
+++ b/bindings/c/zmq.h
@@ -212,6 +212,16 @@ typedef struct
ZMQ_EXPORT int zmq_poll (zmq_pollitem_t *items, int nitems, long timeout);
////////////////////////////////////////////////////////////////////////////////
+// Experimental.
+////////////////////////////////////////////////////////////////////////////////
+
+// This function retrieves the errno as it is known to 0MQ library. The goal
+// of this function is to make the code 100% portable, including where 0MQ
+// compiled with certain CRT library (on Windows) is linked to an application
+// compiled with different CRT library.
+int zmq_errno ();
+
+////////////////////////////////////////////////////////////////////////////////
// Helper functions.
////////////////////////////////////////////////////////////////////////////////