Commit ae2e4c6a by nulltoken

win32: replace usage of _MSV_VER with _MSC_VER

parent 38ce60f0
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#if defined(__GNUC__) #if defined(__GNUC__)
# define CLZ(x) __builtin_clz(x) # define CLZ(x) __builtin_clz(x)
#elif defined(_MSV_VER) #elif defined(_MSC_VER)
# define CLZ(x) _CountLeadingZeros(x) # define CLZ(x) _CountLeadingZeros(x)
#else #else
int CLZ(int32_t x) int CLZ(int32_t x)
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <ctype.h> #include <ctype.h>
#include "posix.h" #include "posix.h"
#ifdef _MSV_VER #ifdef _MSC_VER
# include <Shlwapi.h> # include <Shlwapi.h>
#endif #endif
......
...@@ -211,7 +211,7 @@ char *p_realpath(const char *orig_path, char *buffer) ...@@ -211,7 +211,7 @@ char *p_realpath(const char *orig_path, char *buffer)
int p_vsnprintf(char *buffer, size_t count, const char *format, va_list argptr) int p_vsnprintf(char *buffer, size_t count, const char *format, va_list argptr)
{ {
#ifdef _MSV_VER #ifdef _MSC_VER
int len = _vsnprintf(buffer, count, format, argptr); int len = _vsnprintf(buffer, count, format, argptr);
return (len < 0) ? _vscprintf(format, argptr) : len; return (len < 0) ? _vscprintf(format, argptr) : len;
#else /* MinGW */ #else /* MinGW */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment