2
0
Эх сурвалжийг харах

stb_image_resize: switch GNU/clang from "asm" to "__asm__" for -c99 compatibility

Sean Barrett 1 жил өмнө
parent
commit
e81f294b16
1 өөрчлөгдсөн 3 нэмэгдсэн , 3 устгасан
  1. 3 3
      stb_image_resize2.h

+ 3 - 3
stb_image_resize2.h

@@ -1,4 +1,4 @@
-/* stb_image_resize2 - v2.00 - public domain image resizing
+/* stb_image_resize2 - v2.01 - public domain image resizing
    
    by Jeff Roberts (v2) and Jorge L Rodriguez 
    http://github.com/nothings/stb
@@ -1178,10 +1178,10 @@ static stbir__inline stbir_uint8 stbir__linear_to_srgb_uchar(float in)
   #define STBIR_NO_UNROLL( ptr ) __assume(ptr) // this oddly keeps msvc from unrolling a loop
 #elif defined(  __clang__ )
   #define STBIR_STREAMOUT_PTR( star ) star __restrict__
-  #define STBIR_NO_UNROLL( ptr ) asm (""::"r"(ptr))
+  #define STBIR_NO_UNROLL( ptr ) __asm__ (""::"r"(ptr))
 #elif defined(  __GNUC__ )
   #define STBIR_STREAMOUT_PTR( star ) star __restrict__
-  #define STBIR_NO_UNROLL( ptr ) asm (""::"r"(ptr))
+  #define STBIR_NO_UNROLL( ptr ) __asm__ (""::"r"(ptr))
 #else
   #define STBIR_STREAMOUT_PTR( star ) star
   #define STBIR_NO_UNROLL( ptr )