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