Some platforms don't define ENOSYS - use ENXIO instead on these.

This commit is contained in:
Frank Denis
2016-03-18 22:01:35 +01:00
parent 0c06979260
commit f0e3cb0d50
2 changed files with 8 additions and 0 deletions
@@ -22,6 +22,10 @@
#include <immintrin.h>
#ifndef ENOSYS
# define ENOSYS ENXIO
#endif
#if defined(__INTEL_COMPILER) || defined(_bswap64)
#elif defined(_MSC_VER)
# define _bswap64(a) _byteswap_uint64(a)
+4
View File
@@ -23,6 +23,10 @@
# include <unistd.h>
#endif
#ifndef ENOSYS
# define ENOSYS ENXIO
#endif
#if defined(_WIN32) && (!defined(WINAPI_FAMILY) || WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
# define WINAPI_DESKTOP
#endif