Browse Source

version check guard

master
despair 5 years ago
parent
commit
70f2f1bdc8
  1. 14
      src/Murmur3.cpp

14
src/Murmur3.cpp

@ -13,7 +13,14 @@ @@ -13,7 +13,14 @@
// Platform-specific functions and macros
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#define GCC_VERSION (__GNUC__ * 10000 \
+ __GNUC_MINOR__ * 100 \
+ __GNUC_PATCHLEVEL__)
/* Test for GCC > 6.0.0 */
#if GCC_VERSION > 60000
#pragma GCC diagnostic push
#endif
// Microsoft Visual Studio
@ -339,4 +346,9 @@ void MurmurHash3_x64_128 ( const void * key, const int len, @@ -339,4 +346,9 @@ void MurmurHash3_x64_128 ( const void * key, const int len,
}
//-----------------------------------------------------------------------------
#pragma GCC diagnostic pop
/* Test for GCC > 6.0.0 */
#if GCC_VERSION > 60000
#pragma GCC diagnostic pop
#else
#pragma GCC diagnostic warning "-Wimplicit-fallthrough"
#endif
Loading…
Cancel
Save