Removed the _MSC_VER special cases for Visual Studio 2008 and lower.

We no longer support 2008 and lower so these defines will never be used.
This commit is contained in:
Arthur Ice 2013-05-05 16:58:16 -07:00
parent 37b7a49faf
commit d7dff7d7a6
20 changed files with 37 additions and 103 deletions

View File

@ -38,9 +38,6 @@ using namespace std;
#include <windows.h> #include <windows.h>
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER < 1500)
#define vsnprintf _vsnprintf
#endif
#define strncasecmp _strnicmp #define strncasecmp _strnicmp
#define strcasecmp _stricmp #define strcasecmp _stricmp
#else #else

View File

@ -24,9 +24,6 @@
#ifdef _WINDOWS #ifdef _WINDOWS
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER < 1500)
#define vsnprintf _vsnprintf
#endif
#define strncasecmp _strnicmp #define strncasecmp _strnicmp
#define strcasecmp _stricmp #define strcasecmp _stricmp

View File

@ -10,9 +10,6 @@ using namespace std;
#include <process.h> #include <process.h>
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER < 1500)
#define vsnprintf _vsnprintf
#endif
#define strncasecmp _strnicmp #define strncasecmp _strnicmp
#define strcasecmp _stricmp #define strcasecmp _stricmp
#else #else

View File

@ -1,5 +1,5 @@
/* EQEMu: Everquest Server Emulator /* EQEMu: Everquest Server Emulator
Copyright (C) 2001-2002 EQEMu Development Team (http://eqemu.org) Copyright (C) 2001-2013 EQEMu Development Team (http://eqemu.org)
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -45,22 +45,9 @@
#ifndef _CRTDBG_MAP_ALLOC #ifndef _CRTDBG_MAP_ALLOC
#include <stdlib.h> #include <stdlib.h>
#include <crtdbg.h> #include <crtdbg.h>
#if (_MSC_VER < 1300)
#include <new>
#include <memory>
#define _CRTDBG_MAP_ALLOC
#define new new(_NORMAL_BLOCK, __FILE__, __LINE__)
#define malloc(s) _malloc_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__)
#endif
#endif #endif
#endif #endif
#ifdef _WINDOWS
// VS6 doesn't like the length of STL generated names: disabling
#pragma warning(disable:4786)
#pragma warning(disable:4996)
#endif
#ifndef EQDEBUG_H #ifndef EQDEBUG_H
#define EQDEBUG_H #define EQDEBUG_H
@ -82,6 +69,7 @@
#include "logsys.h" #include "logsys.h"
#include "common_profile.h" #include "common_profile.h"
#ifdef ZONE #ifdef ZONE
#include "../zone/zone_profile.h" #include "../zone/zone_profile.h"
#endif #endif
@ -160,5 +148,7 @@ public:
LARGE_INTEGER tmp; LARGE_INTEGER tmp;
int64* p; int64* p;
}; };
#endif #endif
#endif
#endif

View File

@ -29,9 +29,6 @@
#ifdef _WINDOWS #ifdef _WINDOWS
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER < 1500)
#define vsnprintf _vsnprintf
#endif
#define strncasecmp _strnicmp #define strncasecmp _strnicmp
#define strcasecmp _stricmp #define strcasecmp _stricmp
#else #else

View File

@ -68,9 +68,6 @@ typedef const char Const_char; //for perl XS
#ifdef _WINDOWS #ifdef _WINDOWS
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER < 1500)
#define vsnprintf _vsnprintf
#endif
#define strncasecmp _strnicmp #define strncasecmp _strnicmp
#define strcasecmp _stricmp #define strcasecmp _stricmp
typedef void ThreadReturnType; typedef void ThreadReturnType;

View File

@ -31,9 +31,6 @@ using namespace std;
#include <winsock.h> #include <winsock.h>
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER < 1500)
#define vsnprintf _vsnprintf
#endif
#define strncasecmp _strnicmp #define strncasecmp _strnicmp
#define strcasecmp _stricmp #define strcasecmp _stricmp
#else // Pyro: fix for linux #else // Pyro: fix for linux

View File

@ -20,9 +20,6 @@ using namespace std;
#include <windows.h> #include <windows.h>
#include <winsock.h> #include <winsock.h>
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER < 1500)
#define vsnprintf _vsnprintf
#endif
#define strncasecmp _strnicmp #define strncasecmp _strnicmp
#define strcasecmp _stricmp #define strcasecmp _stricmp
#else #else

View File

@ -49,9 +49,6 @@ using namespace std;
#ifdef _WINDOWS #ifdef _WINDOWS
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER < 1500)
#define vsnprintf _vsnprintf
#endif
#define strncasecmp _strnicmp #define strncasecmp _strnicmp
#define strcasecmp _stricmp #define strcasecmp _stricmp
#endif #endif

View File

@ -47,9 +47,6 @@ using namespace std;
#ifdef _WINDOWS #ifdef _WINDOWS
#include <process.h> #include <process.h>
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER < 1500)
#define vsnprintf _vsnprintf
#endif
#define strncasecmp _strnicmp #define strncasecmp _strnicmp
#define strcasecmp _stricmp #define strcasecmp _stricmp
#include <conio.h> #include <conio.h>

View File

@ -28,12 +28,9 @@ Child of the Mob class.
#include <sstream> #include <sstream>
using namespace std; using namespace std;
#ifdef _WINDOWS #ifdef _WINDOWS
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER < 1500) #define strncasecmp _strnicmp
#define vsnprintf _vsnprintf #define strcasecmp _stricmp
#endif
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#endif #endif
#include "masterentity.h" #include "masterentity.h"

View File

@ -25,12 +25,9 @@ target to center around.
#include "../common/debug.h" #include "../common/debug.h"
#ifdef _WINDOWS #ifdef _WINDOWS
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER < 1500) #define strncasecmp _strnicmp
#define vsnprintf _vsnprintf #define strcasecmp _stricmp
#endif
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#endif #endif
#include "masterentity.h" #include "masterentity.h"

View File

@ -28,19 +28,16 @@ using namespace std;
// for windows compile // for windows compile
#ifdef _WINDOWS #ifdef _WINDOWS
#define abs64 _abs64 #define abs64 _abs64
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER < 1500) #define strncasecmp _strnicmp
#define vsnprintf _vsnprintf #define strcasecmp _stricmp
#endif
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#else #else
#include <stdarg.h> #include <stdarg.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
#include "../common/unix.h" #include "../common/unix.h"
#define abs64 abs #define abs64 abs
#endif #endif
extern volatile bool RunLoops; extern volatile bool RunLoops;

View File

@ -29,9 +29,6 @@
#ifdef _WINDOWS #ifdef _WINDOWS
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER < 1500)
#define vsnprintf _vsnprintf
#endif
#define strncasecmp _strnicmp #define strncasecmp _strnicmp
#define strcasecmp _stricmp #define strcasecmp _stricmp
#else #else

View File

@ -32,9 +32,6 @@
#include <windows.h> #include <windows.h>
#include <winsock.h> #include <winsock.h>
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER < 1500)
#define vsnprintf _vsnprintf
#endif
#define strncasecmp _strnicmp #define strncasecmp _strnicmp
#define strcasecmp _stricmp #define strcasecmp _stricmp
#else #else

View File

@ -49,12 +49,9 @@ using namespace std;
#include "QuestParserCollection.h" #include "QuestParserCollection.h"
#ifdef _WINDOWS #ifdef _WINDOWS
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER < 1500) #define strncasecmp _strnicmp
#define vsnprintf _vsnprintf #define strcasecmp _stricmp
#endif
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#endif #endif
extern Zone* zone; extern Zone* zone;

View File

@ -33,14 +33,12 @@ using namespace std;
#define new new(_NORMAL_BLOCK, __FILE__, __LINE__) #define new new(_NORMAL_BLOCK, __FILE__, __LINE__)
#endif #endif
using namespace std; using namespace std;
#ifdef _WINDOWS #ifdef _WINDOWS
#include <conio.h> #include <conio.h>
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER < 1500) #define strncasecmp _strnicmp
#define vsnprintf _vsnprintf #define strcasecmp _stricmp
#endif
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#endif #endif
volatile bool RunLoops = true; volatile bool RunLoops = true;

View File

@ -28,12 +28,9 @@ Copyright (C) 2001-2002 EQEMu Development Team (http://eqemu.org)
#endif #endif
#ifdef _WINDOWS #ifdef _WINDOWS
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER < 1500) #define strncasecmp _strnicmp
#define vsnprintf _vsnprintf #define strcasecmp _stricmp
#endif
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#endif #endif
#include "../common/packet_functions.h" #include "../common/packet_functions.h"
#include "../common/packet_dump.h" #include "../common/packet_dump.h"

View File

@ -27,16 +27,13 @@
using namespace std; using namespace std;
#ifdef _WINDOWS #ifdef _WINDOWS
#include <windows.h> #include <windows.h>
#include <winsock.h> #include <winsock.h>
#include <process.h> #include <process.h>
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER < 1500) #define strncasecmp _strnicmp
#define vsnprintf _vsnprintf #define strcasecmp _stricmp
#endif
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#else #else
#include <stdarg.h> #include <stdarg.h>
#include <sys/socket.h> #include <sys/socket.h>

View File

@ -29,9 +29,6 @@ using namespace std;
#include <process.h> #include <process.h>
#define snprintf _snprintf #define snprintf _snprintf
#if (_MSC_VER < 1500)
#define vsnprintf _vsnprintf
#endif
#define strncasecmp _strnicmp #define strncasecmp _strnicmp
#define strcasecmp _stricmp #define strcasecmp _stricmp
#endif #endif