cleard and moved includes to header

This commit is contained in:
2025-05-25 16:01:05 +02:00
parent 11146fb632
commit 69d537bddd
2 changed files with 4 additions and 11 deletions

View File

@ -1,14 +1,3 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#ifdef RINGBUFFER_THREAD_SAFE
#include <pthread.h>
#endif
#include "ringbuffer.h"
void _ringBufferIncReader(struct ringBuffer *buf) {
buf->reader += buf->blockSize;
if (buf->reader >= buf->buffer + buf->blocks * buf->blockSize) {

View File

@ -1,4 +1,8 @@
#include <stddef.h>
#ifdef RINGBUFFER_THREAD_SAFE
#include <pthread.h>
#endif
struct ringBuffer {
void *buffer;