diff --git a/plugins/xpad/stdafx.h b/plugins/xpad/stdafx.h index 37e997a3cf..5576f8097d 100644 --- a/plugins/xpad/stdafx.h +++ b/plugins/xpad/stdafx.h @@ -37,23 +37,15 @@ #include #include #include + #include - -// stdc - -#include #include -#include -#include #include #include -#include using namespace std; -extern string format(const char* fmt, ...); - // syntactic sugar // put these into vc9/common7/ide/usertype.dat to have them highlighted @@ -83,12 +75,3 @@ typedef signed long long int64; #define RESTRICT #endif #endif - -#if defined(_DEBUG) && defined(_MSC_VER) - #define ASSERT assert -#else - #define ASSERT(exp) ((void)0) -#endif - - - diff --git a/plugins/xpad/xpad.cpp b/plugins/xpad/xpad.cpp index 3b0d04817c..f75dd5389a 100644 --- a/plugins/xpad/xpad.cpp +++ b/plugins/xpad/xpad.cpp @@ -561,7 +561,7 @@ public: ret = (value == 'B' || value == 'C') ? m_pad->GetId() : 0xf3; break; case 2: - ASSERT(value == 0); + assert(value == 0); ret = 'Z'; break; default: diff --git a/plugins/xpad/xpad.h b/plugins/xpad/xpad.h index ac9dbe6d64..12cfc04a45 100644 --- a/plugins/xpad/xpad.h +++ b/plugins/xpad/xpad.h @@ -78,7 +78,7 @@ struct KeyEvent class CCritSec { CCritSec(const CCritSec &refCritSec); - CCritSec &operator=(const CCritSec &refCritSec); + CCritSec &operator=(const CCritSec &refCritSec) = delete; CRITICAL_SECTION m_CritSec; @@ -93,7 +93,7 @@ public: class CAutoLock { CAutoLock(const CAutoLock &refAutoLock); - CAutoLock &operator=(const CAutoLock &refAutoLock); + CAutoLock &operator=(const CAutoLock &refAutoLock) = delete; protected: CCritSec * m_pLock; diff --git a/plugins/xpad/xpad.vcxproj b/plugins/xpad/xpad.vcxproj index f48a9477e8..270cbf0671 100644 --- a/plugins/xpad/xpad.vcxproj +++ b/plugins/xpad/xpad.vcxproj @@ -28,27 +28,27 @@ DynamicLibrary false - MultiByte + Unicode true $(DefaultPlatformToolset)_xp DynamicLibrary false - MultiByte + Unicode $(DefaultPlatformToolset)_xp DynamicLibrary - Static - MultiByte + false + Unicode true $(DefaultPlatformToolset)_xp DynamicLibrary - Static - MultiByte + false + Unicode $(DefaultPlatformToolset)_xp