diff options
author | Thomas Touhey <thomas@touhey.fr> | 2019-04-29 17:39:17 +0200 |
---|---|---|
committer | Thomas Touhey <thomas@touhey.fr> | 2019-04-29 17:39:17 +0200 |
commit | c5ecf356812ce0cb588a38b34591e144587cee7c (patch) | |
tree | d90faa8d7f519ac5900b8e28b8931a9b79041128 /include/libtio/native.h | |
parent | 93e905d409a9c10b3f57be503c241c1b158069a9 (diff) |
Fixed Windows build problem, made that speed is raw and no longer a constant amongst others
Diffstat (limited to 'include/libtio/native.h')
-rw-r--r-- | include/libtio/native.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/libtio/native.h b/include/libtio/native.h index eaffb01..1f556fb 100644 --- a/include/libtio/native.h +++ b/include/libtio/native.h @@ -21,17 +21,19 @@ TIO_BEGIN_DECLS * - `LIBTIO_DISABLED_WINDOWS`: disable Windows API support. * - `LIBTIO_DISABLED_MACOS`: disable MacOS (OS X) support. */ -# if defined(__unix__) && __unix__ -# else -# define LIBTIO_DISABLED_UNIX 1 -# endif - # if defined(_WIN16) || defined(_WIN32) || defined(_WIN64) \ || defined(__WINDOWS__) # else # define LIBTIO_DISABLED_WINDOWS 1 # endif +# if !defined(LIBTIO_DISABLED_WINDOWS) +# define LIBTIO_DISABLED_UNIX 1 +# elif defined(__unix__) && __unix__ +# else +# define LIBTIO_DISABLED_UNIX 1 +# endif + # if defined(__APPLE__) # else # define LIBTIO_DISABLED_MACOS 1 |