diff --git a/utest.h b/utest.h index 44d58c9..d3ec66f 100644 --- a/utest.h +++ b/utest.h @@ -37,7 +37,7 @@ #include #include -#ifdef _MSC_VER +#if defined(_MSC_VER) #if defined(_M_IX86) #define _X86_ #endif @@ -48,8 +48,15 @@ #include #include -#else +#elif defined(__linux__) +// slightly obscure include here - we need to include glibc's features.h, but +// we don't want to just include a header that might not be defined for other +// c libraries like musl. Instead we include limits.h, which we know on all +// glibc distributions includes features.h +#include #include +#else +#error Unknown platform! #endif #if defined(_MSC_VER)