NULL -> nullptr
[folly.git] / folly / Checksum.cpp
index 788e0a19ade4249c889e0b737435e6816249d830..28ed83920247f6e5696a04a91061ee9761c5c3a1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2013 Facebook, Inc.
+ * Copyright 2014 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -24,7 +24,8 @@ namespace folly {
 
 namespace detail {
 
-#if defined(__x86_64__) && defined (__GNUC__)
+#if defined(__x86_64__) && defined(__GNUC__) && defined(__GNUC_MINOR__) && \
+    (((__GNUC__ * 100) + __GNUC_MINOR__) >= 407)
 
 // Fast SIMD implementation of CRC-32C for x86 with SSE 4.2
 uint32_t crc32c_hw(const uint8_t *data, size_t nbytes,