Commit dfd54ff5 authored by Oleg Korshul's avatar Oleg Korshul

_MSC_VER >= 1900 build

parent 6ec7d77e
...@@ -63,7 +63,9 @@ ...@@ -63,7 +63,9 @@
#include <sys/utime.h> #include <sys/utime.h>
#include <winsock2.h> #include <winsock2.h>
#pragma comment(lib, "ws2_32.lib") #pragma comment(lib, "ws2_32.lib")
#if defined(_MSC_VER) && _MSC_VER < 1900
#define snprintf _snprintf #define snprintf _snprintf
#endif
#define strcasecmp _stricmp #define strcasecmp _stricmp
#define strncasecmp _strnicmp #define strncasecmp _strnicmp
typedef __int64 INT64; typedef __int64 INT64;
......
...@@ -68,7 +68,9 @@ ...@@ -68,7 +68,9 @@
#include <sys/utime.h> #include <sys/utime.h>
#include <winsock2.h> #include <winsock2.h>
#pragma comment(lib, "ws2_32.lib") #pragma comment(lib, "ws2_32.lib")
#if defined(_MSC_VER) && _MSC_VER < 1900
#define snprintf _snprintf #define snprintf _snprintf
#endif
#define strcasecmp stricmp #define strcasecmp stricmp
#define strncasecmp strnicmp #define strncasecmp strnicmp
typedef __int64 INT64; typedef __int64 INT64;
......
...@@ -113,7 +113,9 @@ static dcr_stream_ops dcr_stream_fileops = { ...@@ -113,7 +113,9 @@ static dcr_stream_ops dcr_stream_fileops = {
#include <sys/utime.h> #include <sys/utime.h>
#include <winsock2.h> #include <winsock2.h>
#pragma comment(lib, "ws2_32.lib") #pragma comment(lib, "ws2_32.lib")
#if defined(_MSC_VER) && _MSC_VER < 1900
#define snprintf _snprintf #define snprintf _snprintf
#endif
#define strcasecmp _stricmp #define strcasecmp _stricmp
#define strncasecmp _strnicmp #define strncasecmp _strnicmp
typedef __int64 INT64; typedef __int64 INT64;
......
...@@ -269,7 +269,7 @@ enum { ...@@ -269,7 +269,7 @@ enum {
/*------------------------------------------------------------------------* /*------------------------------------------------------------------------*
* snprintf() renamed in MSVC * * snprintf() renamed in MSVC *
*------------------------------------------------------------------------*/ *------------------------------------------------------------------------*/
#ifdef _MSC_VER #if defined(_MSC_VER) && _MSC_VER < 1900
#define snprintf _snprintf #define snprintf _snprintf
#endif #endif
......
...@@ -129,7 +129,9 @@ int isnan (double d) { ...@@ -129,7 +129,9 @@ int isnan (double d) {
#if defined(_MSC_VER) #if defined(_MSC_VER)
#define mkdir(p,m) _mkdir(p) #define mkdir(p,m) _mkdir(p)
#if _MSC_VER < 1900
#define snprintf _snprintf #define snprintf _snprintf
#endif
#if _MSC_VER < 1500 #if _MSC_VER < 1500
#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a) #define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
#endif #endif
......
...@@ -127,7 +127,9 @@ static int isnan (double d) { ...@@ -127,7 +127,9 @@ static int isnan (double d) {
#if defined(_MSC_VER) #if defined(_MSC_VER)
#define mkdir(p,m) _mkdir(p) #define mkdir(p,m) _mkdir(p)
#if _MSC_VER < 1900
#define snprintf _snprintf #define snprintf _snprintf
#endif
#if _MSC_VER < 1500 #if _MSC_VER < 1500
#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a) #define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
#endif #endif
......
...@@ -43,7 +43,9 @@ char *strerror(int errnum); ...@@ -43,7 +43,9 @@ char *strerror(int errnum);
Macro'ed inexistant funtion names Macro'ed inexistant funtion names
*/ */
#if defined(_MSC_VER) && _MSC_VER < 1900
#define snprintf _snprintf #define snprintf _snprintf
#endif
#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a) #define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
#define perror(_t) MessageBox(NULL, _T("_t"), _T("Error/Warning"), MB_OK) #define perror(_t) MessageBox(NULL, _T("_t"), _T("Error/Warning"), MB_OK)
......
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