Skip to content

Commit 7b3ef7a

Browse files
committed
Fix compile issue for Windows ARM
1 parent a9006c0 commit 7b3ef7a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/sqlite3mc.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,18 @@ void sqlite3mc_shutdown(void);
7373
#define SQLITE_API
7474
#endif
7575

76+
/*
77+
** We need to do the following check here BEFORE including <windows.h>,
78+
** because the header <arm_neon.h> is included from somewhere within
79+
** <windows.h>, and we need support for the new Neon intrinsics, if
80+
** AES hardware support is enabled.
81+
*/
82+
#if defined (_MSC_VER)
83+
#if defined _M_ARM
84+
#define _ARM_USE_NEW_NEON_INTRINSICS
85+
#endif
86+
#endif
87+
7688
#include <windows.h>
7789

7890
/* SQLite functions only needed on Win32 */

0 commit comments

Comments
 (0)