mirror of
https://github.com/gperftools/gperftools
synced 2025-01-25 16:33:52 +00:00
Check if _MSC_VER is defined to avoid warnings
This commit is contained in:
parent
7367322995
commit
121038308d
@ -64,7 +64,7 @@
|
||||
#include <assert.h>
|
||||
#include <stdlib.h> /* for rand, srand, _strtoxxx */
|
||||
|
||||
#if _MSC_VER >= 1900
|
||||
#if defined(_MSC_VER) && _MSC_VER >= 1900
|
||||
#define _TIMESPEC_DEFINED
|
||||
#include <time.h>
|
||||
#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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user