mirror of https://github.com/flysand7/ciabatta.git
20 lines
340 B
C
20 lines
340 B
C
|
|
#pragma once
|
|
|
|
#if defined(_WIN32)
|
|
#define _os_win
|
|
#endif
|
|
|
|
#if defined(__linux__) && !defined(__ANDROID__)
|
|
#define _os_linux
|
|
#endif
|
|
|
|
#if !(defined(_os_win) \
|
|
|| defined(_os_linux))
|
|
#error "Unsupported OS"
|
|
#endif
|
|
|
|
// OS-dependent IO Functions
|
|
void _file_write(void* ctx, size_t n, const char str[]);
|
|
typedef struct FILE FILE;
|