0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-14 17:58:01 +08:00

Add "draft" capability to zmq_has

As discussed in #2307
This commit is contained in:
Asmod4n 2017-01-19 18:44:56 +01:00 committed by GitHub
parent 4c1b338015
commit 4dbd387fa9

View File

@ -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;