glibc isn't limited to linux

pull/25/head
cathugger 4 years ago
parent f4567d7190
commit 33162701fe
No known key found for this signature in database
GPG Key ID: 9BADDA2DAF6F01A8

@ -124,6 +124,7 @@ int cpucount(void)
#endif
#ifdef __linux__
// try parsing /proc/cpuinfo
// NOTE seems cygwin can provide this too, idk if need tho
ncpu = parsecpuinfo();
if (ncpu > 0)
return ncpu;

@ -1,4 +1,4 @@
#ifdef __linux__
#ifdef __GLIBC__
#define _POSIX_C_SOURCE 200112L
#endif

@ -1,4 +1,4 @@
#ifdef __linux__
#ifdef __GLIBC__
#define _POSIX_C_SOURCE 200112L
#endif

@ -1,4 +1,4 @@
#ifdef __linux__
#ifdef __GLIBC__
#define _POSIX_C_SOURCE 200112L
#endif

Loading…
Cancel
Save