Mercurial > pub > dyncall > dyncall
comparison autovar/autovar_OS.h @ 254:9d70178c1ded
- better cpp checking whether dlinfo() is available, to also cover GLIBC based systems that don't identify as Linux (e.g. debian/k*BSD)
author | Tassilo Philipp |
---|---|
date | Mon, 15 May 2017 13:06:04 +0200 |
parents | 3e629dc19168 |
children | f5577f6bf97a |
comparison
equal
deleted
inserted
replaced
253:5cfe4322c500 | 254:9d70178c1ded |
---|---|
37 # else /* defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) */ | 37 # else /* defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) */ |
38 # define OS_MacOSX | 38 # define OS_MacOSX |
39 # endif | 39 # endif |
40 #elif defined(__linux__) || defined(__linux) || defined(__gnu_linux__) | 40 #elif defined(__linux__) || defined(__linux) || defined(__gnu_linux__) |
41 # define OS_Linux | 41 # define OS_Linux |
42 #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) | 42 #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) /* latter is (also) used by systems using FreeBSD kernel, e.g. Debian/kFreeBSD, which could be detected specifically by also checking for __GLIBC__ */ |
43 # define OS_FreeBSD | 43 # define OS_FreeBSD |
44 #elif defined(__OpenBSD__) | 44 #elif defined(__OpenBSD__) |
45 # define OS_OpenBSD | 45 # define OS_OpenBSD |
46 #elif defined(__NetBSD__) | 46 #elif defined(__NetBSD__) |
47 # define OS_NetBSD | 47 # define OS_NetBSD |