Mercurial > pub > dyncall > dyncall
comparison dyncall/dyncall_macros.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 | a74e2cd93348 |
children | b625f2e11911 |
comparison
equal
deleted
inserted
replaced
253:5cfe4322c500 | 254:9d70178c1ded |
---|---|
70 /* The most popular open source Unix-like OS - Linux. */ | 70 /* The most popular open source Unix-like OS - Linux. */ |
71 #elif defined(__linux__) || defined(__linux) || defined(__gnu_linux__) | 71 #elif defined(__linux__) || defined(__linux) || defined(__gnu_linux__) |
72 #define DC__OS_Linux | 72 #define DC__OS_Linux |
73 | 73 |
74 /* The most powerful open source Unix-like OS - FreeBSD. */ | 74 /* The most powerful open source Unix-like OS - FreeBSD. */ |
75 #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) | 75 #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__ */ |
76 #define DC__OS_FreeBSD | 76 #define DC__OS_FreeBSD |
77 | 77 |
78 /* The most secure open source Unix-like OS - OpenBSD. */ | 78 /* The most secure open source Unix-like OS - OpenBSD. */ |
79 #elif defined(__OpenBSD__) | 79 #elif defined(__OpenBSD__) |
80 #define DC__OS_OpenBSD | 80 #define DC__OS_OpenBSD |