summaryrefslogtreecommitdiffstats
path: root/contrib/restricted/google/utf8_range/patches/msvc-support.patch
blob: cb55a6c6943eaee89c09c9ab6af489edff0b1427 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- contrib/restricted/google/utf8_range/range2-sse.c	(index)
+++ contrib/restricted/google/utf8_range/range2-sse.c	(working tree)
@@ -6,7 +6,12 @@

 #include <stdio.h>
 #include <stdint.h>
-#include <x86intrin.h>
+
+#if defined(_MSC_VER)
+    #include <intrin.h>
+#else
+    #include <x86intrin.h>
+#endif

 int utf8_naive(const unsigned char *data, int len);