Guard on DEBUG_NEW and stub-out for precompiled headers

pull/326/head
Jeffrey Walton 2016-10-02 03:10:06 -04:00
parent 8a6d18853d
commit fd278c2e8b
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 8 additions and 2 deletions

View File

@ -459,7 +459,7 @@ public:
}
}
#if defined(_MSC_VER) && (_MSC_VER >= 1300)
#if defined(DEBUG_NEW) && (_MSC_VER >= 1300)
# pragma push_macro("new")
# undef new
#endif
@ -470,7 +470,7 @@ public:
CRYPTOPP_UNUSED(p); // silence warning
}
#if defined(_MSC_VER) && (_MSC_VER >= 1300)
#if defined(DEBUG_NEW) && (_MSC_VER >= 1300)
# pragma pop_macro("new")
#endif

6
pch.h
View File

@ -21,4 +21,10 @@
#endif
# endif
// Enable file and line numbers, if available.
// #if defined(_MSC_VER) && defined(_DEBUG) && defined(USE_PRECOMPILED_HEADERS)
// # define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
// # define new DEBUG_NEW
// #endif
#endif // CRYPTOPP_PCH_H