prevent multi include

This commit is contained in:
2025-05-25 16:19:28 +02:00
parent 095fca6b3d
commit 99c2f4f0d4
2 changed files with 4 additions and 0 deletions

View File

@ -1,4 +1,6 @@
#ifndef RINGBUFFER_H
#include "ringbuffer.h"
#endif
void _ringBufferIncReader(struct ringBuffer *buf) {
buf->reader += buf->blockSize;

View File

@ -6,6 +6,8 @@
#include <pthread.h>
#endif
#define RINGBUFFER_H
struct ringBuffer {
void *buffer;
int blocks;