mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Some platforms don't define ENOSYS - use ENXIO instead on these.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user