Compare commits
No commits in common. "df0187bdb354ee91a5ab30fcf3ef74a9b6729aa7" and "ae3536529b79c17f67c14066490753e814d017f0" have entirely different histories.
df0187bdb3
...
ae3536529b
1 changed files with 22 additions and 26 deletions
48
colla.h
48
colla.h
|
|
@ -1,32 +1,6 @@
|
|||
#ifndef COLLA_HEADER
|
||||
#define COLLA_HEADER
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define COLLA_WIN 1
|
||||
#define COLLA_OSX 0
|
||||
#define COLLA_LIN 0
|
||||
#define COLLA_EMC 0
|
||||
#elif defined(__EMSCRIPTEN__)
|
||||
#define COLLA_WIN 0
|
||||
#define COLLA_OSX 0
|
||||
#define COLLA_LIN 0
|
||||
#define COLLA_EMC 1
|
||||
#elif defined(__linux__)
|
||||
#define COLLA_WIN 0
|
||||
#define COLLA_OSX 0
|
||||
#define COLLA_LIN 1
|
||||
#define COLLA_EMC 0
|
||||
#elif defined(__APPLE__)
|
||||
#define COLLA_WIN 0
|
||||
#define COLLA_OSX 1
|
||||
#define COLLA_LIN 0
|
||||
#define COLLA_EMC 0
|
||||
#endif
|
||||
|
||||
#if COLLA_LIN
|
||||
#define _FILE_OFFSET_BITS 1
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
|
@ -72,6 +46,28 @@ void colla_cleanup(void);
|
|||
#define COLLA_RELEASE 1
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define COLLA_WIN 1
|
||||
#define COLLA_OSX 0
|
||||
#define COLLA_LIN 0
|
||||
#define COLLA_EMC 0
|
||||
#elif defined(__EMSCRIPTEN__)
|
||||
#define COLLA_WIN 0
|
||||
#define COLLA_OSX 0
|
||||
#define COLLA_LIN 0
|
||||
#define COLLA_EMC 1
|
||||
#elif defined(__linux__)
|
||||
#define COLLA_WIN 0
|
||||
#define COLLA_OSX 0
|
||||
#define COLLA_LIN 1
|
||||
#define COLLA_EMC 0
|
||||
#elif defined(__APPLE__)
|
||||
#define COLLA_WIN 0
|
||||
#define COLLA_OSX 1
|
||||
#define COLLA_LIN 0
|
||||
#define COLLA_EMC 0
|
||||
#endif
|
||||
|
||||
#if defined(__COSMOPOLITAN__)
|
||||
#define COLLA_COSMO 1
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue