diff --git a/src/windows/port.h b/src/windows/port.h index 0350f45..87db9dd 100644 --- a/src/windows/port.h +++ b/src/windows/port.h @@ -64,7 +64,7 @@ #include #include /* for rand, srand, _strtoxxx */ -#if _MSC_VER >= 1900 +#if defined(_MSC_VER) && _MSC_VER >= 1900 #define _TIMESPEC_DEFINED #include #endif @@ -461,7 +461,7 @@ inline int nanosleep(const struct timespec *req, struct timespec *rem) { #endif #ifndef __MINGW32__ -#if _MSC_VER < 1800 +#if defined(_MSC_VER) && _MSC_VER < 1800 inline long long int strtoll(const char *nptr, char **endptr, int base) { return _strtoi64(nptr, endptr, base); }