浏览代码

stb_image: GCC fix for new SIMD stuff.

Fabian Giesen 10 年之前
父节点
当前提交
b082091bcb
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      stb_image.h

+ 5 - 5
stb_image.h

@@ -414,11 +414,6 @@ static int stbi__sse2_available()
 
 
 #else // assume GCC-style if not VC++
 #else // assume GCC-style if not VC++
 #define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16)))
 #define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16)))
-#endif
-#endif
-
-#ifndef STBI_SIMD_ALIGN
-#define STBI_SIMD_ALIGN(type, name) type name
 
 
 static int stbi__sse2_available()
 static int stbi__sse2_available()
 {
 {
@@ -432,6 +427,11 @@ static int stbi__sse2_available()
 #endif
 #endif
 }
 }
 #endif
 #endif
+#endif
+
+#ifndef STBI_SIMD_ALIGN
+#define STBI_SIMD_ALIGN(type, name) type name
+#endif
 
 
 ///////////////////////////////////////////////
 ///////////////////////////////////////////////
 //
 //