Guard on DEBUG_NEW and stub-out for precompiled headers
parent
8a6d18853d
commit
fd278c2e8b
|
|
@ -459,7 +459,7 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_MSC_VER) && (_MSC_VER >= 1300)
|
#if defined(DEBUG_NEW) && (_MSC_VER >= 1300)
|
||||||
# pragma push_macro("new")
|
# pragma push_macro("new")
|
||||||
# undef new
|
# undef new
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -470,7 +470,7 @@ public:
|
||||||
CRYPTOPP_UNUSED(p); // silence warning
|
CRYPTOPP_UNUSED(p); // silence warning
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_MSC_VER) && (_MSC_VER >= 1300)
|
#if defined(DEBUG_NEW) && (_MSC_VER >= 1300)
|
||||||
# pragma pop_macro("new")
|
# pragma pop_macro("new")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
6
pch.h
6
pch.h
|
|
@ -21,4 +21,10 @@
|
||||||
#endif
|
#endif
|
||||||
# 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
|
#endif // CRYPTOPP_PCH_H
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue