Skip to content

Commit

Permalink
Fixed C++ compatability issue
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltyson committed Sep 17, 2016
1 parent b1e15ca commit 7364065
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion TPCircularBuffer.h
Expand Up @@ -43,10 +43,18 @@
#define TPCircularBuffer_h

#include <stdbool.h>
#include <stdatomic.h>
#include <string.h>
#include <assert.h>

#ifdef __cplusplus
extern "C++" {
#include <atomic>
using namespace std;
}
#else
#include <stdatomic.h>
#endif

#ifdef __cplusplus
extern "C" {
#endif
Expand Down

0 comments on commit 7364065

Please sign in to comment.