diff --git a/CMakeLists.txt b/CMakeLists.txt index 69421b52..fde73149 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -157,7 +157,7 @@ check_function_exists(gethrtime HAVE_GETHRTIME) set(CMAKE_REQUIRED_INCLUDES ) add_definitions(-D_REENTRANT -D_THREAD_SAFE) -add_definitions(-D_USING_CMAKE) +add_definitions(-DZMQ_USING_CMAKE) option(ENABLE_EVENTFD "Enable/disable eventfd" ZMQ_HAVE_EVENTFD) diff --git a/tests/testutil.hpp b/tests/testutil.hpp index ed1915ee..2f0b48cb 100644 --- a/tests/testutil.hpp +++ b/tests/testutil.hpp @@ -32,7 +32,7 @@ #include "../include/zmq.h" #include "../src/stdint.hpp" -#ifdef USING_CMAKE +#ifdef ZMQ_USING_CMAKE # include "platform.hpp" #else # include "../src/platform.hpp"