colla/os.h
snarmph 59b55c7f6c added:
dir -> directory walker similar to dirent
    dirwatch -> lets you watch a directory for changes in another thread
    vec -> generic vector
2021-10-25 01:32:31 +01:00

26 lines
No EOL
559 B
C

#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
#include <string.h>
#ifdef _WIN32
#include <stdio.h>
#include <BaseTsd.h> // SSIZE_T
typedef SSIZE_T ssize_t;
ssize_t getdelim(char **buf, size_t *bufsz, int delimiter, FILE *fp);
ssize_t getline(char **line_ptr, size_t *n, FILE *stream);
#define stricmp _stricmp
#else
#define stricmp strcasecmp
#define _GNU_SOURCE
#include <stdio.h>
#include <sys/types.h> // ssize_t
#endif
#ifdef __cplusplus
} // extern "C"
#endif