Skip to content

Commit

Permalink
Added missing #ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Nov 26, 2023
1 parent 1e6b38b commit 806d5d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/ZMQPublisher.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#ifndef _ZMQ_PUBLISHER_H_
#define _ZMQ_PUBLISHER_H_

#ifdef HAVE_ZMQ

class ZMQPublisher {
private:
void *context; /**< ZMQ context */
Expand All @@ -42,4 +44,6 @@ class ZMQPublisher {
inline bool sendControlMessage(char *msg) { return (sendMessage("message", msg)); }
};

#endif /* HAVE_ZMQ */

#endif /* _ZMQ_PUBLISHER_H_ */
3 changes: 3 additions & 0 deletions include/ZMQUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#ifndef HAVE_NEDGE

#ifdef HAVE_ZMQ

class ZMQUtils {
private:

Expand All @@ -31,5 +33,6 @@ class ZMQUtils {
#endif
};

#endif /* HAVE_ZMQ */
#endif /* HAVE_NEDGE */
#endif /* _ZMQ_UTILS_H_ */

0 comments on commit 806d5d8

Please sign in to comment.