Compare commits
2 commits
ae3536529b
...
df0187bdb3
| Author | SHA1 | Date | |
|---|---|---|---|
| df0187bdb3 | |||
| 7298d53b9b |
1 changed files with 26 additions and 22 deletions
48
colla.h
48
colla.h
|
|
@ -1,6 +1,32 @@
|
||||||
#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
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
@ -46,28 +72,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