Permalink
Browse files

Merge pull request #1 from Club15CC/master

C++ compatibility tweak
  • Loading branch information...
2 parents 274b470 + b8c0a8d commit 3a1b9699ecadacb7037b96033144c51917d37d79 @michaeltyson michaeltyson committed Feb 6, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 TPCircularBuffer.h
View
@@ -35,6 +35,10 @@
#include <libkern/OSAtomic.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
void *buffer;
int32_t length;
@@ -55,3 +59,7 @@ void TPCircularBufferConsume(TPCircularBuffer *buffer, int32_t amount);
void* TPCircularBufferHead(TPCircularBuffer *buffer, int32_t* availableBytes);
void TPCircularBufferProduce(TPCircularBuffer *buffer, int32_t amount);
int TPCircularBufferProduceBytes(TPCircularBuffer *buffer, const void* src, int32_t len);
+
+#ifdef __cplusplus
+}
+#endif

0 comments on commit 3a1b969

Please sign in to comment.