Skip to content

Commit

Permalink
move static_assert ZMQ_VERSION_MAJOR >= 3 to be right after #include …
Browse files Browse the repository at this point in the history
…<zmq.h> so it's the first error message
  • Loading branch information
armstrtw committed Dec 4, 2014
1 parent 3df3dca commit 550e35f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
#include <string>
#include <sstream>
#include <stdexcept>
#include <zmq.h>
static_assert(ZMQ_VERSION_MAJOR >= 3,"The minimum required version of libzmq is 3.0.0.");
#include <zmq.hpp>
#include "interface.h"

static_assert(ZMQ_VERSION_MAJOR >= 3,"The minimum required version of libzmq is 3.0.0.");

SEXP get_zmq_version() {
SEXP ans;
int major, minor, patch;
Expand Down

0 comments on commit 550e35f

Please sign in to comment.