From 4dbd387fa95f361426ed95193711b6937bc22c88 Mon Sep 17 00:00:00 2001 From: Asmod4n Date: Thu, 19 Jan 2017 18:44:56 +0100 Subject: [PATCH] Add "draft" capability to zmq_has As discussed in #2307 --- src/zmq.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/zmq.cpp b/src/zmq.cpp index a9e933eb..cf71a72d 100644 --- a/src/zmq.cpp +++ b/src/zmq.cpp @@ -1516,6 +1516,10 @@ int zmq_has (const char *capability) #if defined (ZMQ_HAVE_VMCI) if (strcmp (capability, "vmci") == 0) return true; +#endif +#if defined (ZMQ_BUILD_DRAFT_API) + if (strcmp (capability, "draft") == 0) + return true; #endif // Whatever the application asked for, we don't have return false;