Fix missing define for MSVC

This commit is contained in:
Jeffrey Walton 2017-12-26 15:07:28 -05:00
parent 4904d0fc8d
commit 4d9c91b425
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,8 @@
// https://www.spinics.net/lists/gcchelp/msg47749.html
#if (CRYPTOPP_GCC_VERSION >= 40900)
# define GCC_NO_UBSAN __attribute__ ((no_sanitize_undefined))
#else
# define GCC_NO_UBSAN
#endif
ANONYMOUS_NAMESPACE_BEGIN

View File

@ -49,6 +49,8 @@
// https://www.spinics.net/lists/gcchelp/msg47749.html
#if (CRYPTOPP_GCC_VERSION >= 40900)
# define GCC_NO_UBSAN __attribute__ ((no_sanitize_undefined))
#else
# define GCC_NO_UBSAN
#endif
ANONYMOUS_NAMESPACE_BEGIN