[libgens/tests] AudioWriteTest.cpp: Check for __GNUC__ when checking for MMX/SSE2.
authorDavid Korth <gerbilsoft@gerbilsoft.com>
Wed, 2 Sep 2015 04:08:31 +0000 (00:08 -0400)
committerDavid Korth <gerbilsoft@gerbilsoft.com>
Wed, 2 Sep 2015 04:08:31 +0000 (00:08 -0400)
src/libgens/tests/sound/AudioWriteTest.cpp

index 784e8e8..7ea3163 100644 (file)
@@ -158,7 +158,8 @@ INSTANTIATE_TEST_CASE_P(AudioWriteTest_NoFlags, AudioWriteTest,
 ));
 
 // NOTE: SoundMgr only implements MMX/SSE2 using GNU assembler.
-#if defined(__i386__) || defined(__amd64__)
+#if defined(__GNUC__) && \
+    (defined(__i386__) || defined(__amd64__))
 INSTANTIATE_TEST_CASE_P(AudioWriteTest_MMX, AudioWriteTest,
        ::testing::Values(AudioWriteTest_flags(MDP_CPUFLAG_X86_MMX, 0)
 ));