.
This commit is contained in:
parent
7e7c371b9e
commit
7298d53b9b
1 changed files with 25 additions and 23 deletions
46
colla.h
46
colla.h
|
|
@ -1,7 +1,31 @@
|
||||||
#ifndef COLLA_HEADER
|
#ifndef COLLA_HEADER
|
||||||
#define 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
|
#define _FILE_OFFSET_BITS 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
@ -42,28 +66,6 @@ void colla_cleanup(void);
|
||||||
#define COLLA_RELEASE 1
|
#define COLLA_RELEASE 1
|
||||||
#endif
|
#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__)
|
#if defined(__COSMOPOLITAN__)
|
||||||
#define COLLA_COSMO 1
|
#define COLLA_COSMO 1
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue