]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
extern "C" for mask1bit table
authorMatthew Barr <matthew.barr@intel.com>
Wed, 14 Sep 2016 04:00:43 +0000 (14:00 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Fri, 28 Oct 2016 03:51:49 +0000 (14:51 +1100)
src/util/simd_utils.h

index 4bb055df6cdcd1c40e92f03c1f12427be1fdee0e..afa8c7f8e55b2ac1e94ac5bb0a1bf0aab7faa863 100644 (file)
@@ -260,7 +260,13 @@ m128 loadbytes128(const void *ptr, unsigned int n) {
     return a;
 }
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 extern const u8 simd_onebit_masks[];
+#ifdef __cplusplus
+}
+#endif
 
 static really_inline
 m128 mask1bit128(unsigned int n) {