Skip to content
Snippets Groups Projects
Commit 7794a770 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Conditionally #include assert.h if we're going to define macros using it

parent 54bdb5ae
Branches
Tags
No related merge requests found
Pipeline #7916 passed
#ifndef RWLOCKWRAP_H
#define RWLOCKWRAP_H
#ifndef NDEBUG
#include <assert.h>
#endif
#if defined(__unix__)
#include <pthread.h>
......
......@@ -40,6 +40,10 @@
#endif
#endif
#ifndef NDEBUG
#include <assert.h>
#endif
#if defined(__cplusplus)
extern "C" {
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment