From 4c2cf071f8b12cbe66d1b28cf8c05ec9d7581d42 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 16 Feb 2017 09:23:54 +0100 Subject: [PATCH] Include on Visual Studio for __cpuid() --- src/libsodium/sodium/runtime.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libsodium/sodium/runtime.c b/src/libsodium/sodium/runtime.c index 78f0a581..30cfc726 100644 --- a/src/libsodium/sodium/runtime.c +++ b/src/libsodium/sodium/runtime.c @@ -4,6 +4,10 @@ #ifdef HAVE_ANDROID_GETCPUFEATURES # include #endif +#if defined(_MSC_VER) && \ + (defined(_M_X64) || defined(_M_AMD64) || defined(_M_IX86)) +# include +#endif #include "runtime.h"