Skip to content

Commit

Permalink
Fix building _nvx_utf8validator extension on non-x86 systems (#1596)
Browse files Browse the repository at this point in the history
x86intrin.h does not exist on such systems
  • Loading branch information
Chih-Hsuan Yen committed Sep 26, 2022
1 parent 528f6a0 commit 201eeb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autobahn/nvx/_utf8validator.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
#include <stdint.h>

// http://stackoverflow.com/questions/11228855/header-files-for-simd-intrinsics
#if defined(__SSE2__) || defined(__SSE4_1__)
#include <x86intrin.h>
#endif


#define UTF8_ACCEPT 0
Expand Down

0 comments on commit 201eeb2

Please sign in to comment.