Skip to content

Commit

Permalink
Make it compile on Cygwin. (#371)
Browse files Browse the repository at this point in the history
* Make it compile on Cygwin.

Signed-off-by: Bu11etmagnet <[email protected]>

* Run clang-format

Signed-off-by: Bu11etmagnet <[email protected]>

* Run clang-format on cpuid.c

Signed-off-by: Bu11etmagnet <[email protected]>
  • Loading branch information
Bu11etmagnet authored and JonathanHenson committed Jun 14, 2019
1 parent ef38080 commit 0e88fcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/arch/cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
#define CPUID_UNAVAILABLE 1
static int cpuid_state = 2;

#ifdef HAVE_MSVC_CPUIDEX
#ifndef HAVE_BUILTIN_CPU_SUPPORTS
# ifdef HAVE_MSVC_CPUIDEX
static bool msvc_check_avx2(void) {
int cpuInfo[4];

Expand All @@ -56,6 +57,7 @@ static bool msvc_check_avx2(void) {
/* EBX bit 5: AVX2 support */
return cpuInfo[1] & (1 << 5);
}
# endif
#endif

bool aws_common_private_has_avx2(void) {
Expand Down

0 comments on commit 0e88fcb

Please sign in to comment.