prevent multi include
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
#ifndef RINGBUFFER_H
|
||||
#include "ringbuffer.h"
|
||||
#endif
|
||||
|
||||
void _ringBufferIncReader(struct ringBuffer *buf) {
|
||||
buf->reader += buf->blockSize;
|
||||
|
@ -6,6 +6,8 @@
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
#define RINGBUFFER_H
|
||||
|
||||
struct ringBuffer {
|
||||
void *buffer;
|
||||
int blocks;
|
||||
|
Reference in New Issue
Block a user