ciabatta/inc/_os.h

22 lines
398 B
C
Raw Normal View History

#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
2022-06-07 02:57:57 +00:00
// OS-dependent IO Functions
2022-06-07 06:02:23 +00:00
void _os_file_write(void* ctx, size_t n, const char str[]);
2022-06-07 06:15:47 +00:00
_Noreturn void _os_exit(int code);
2022-06-07 06:02:23 +00:00
void _os_init_eh();
2022-06-07 02:57:57 +00:00
typedef struct FILE FILE;