소스 검색

SDL_string.c: tidy-up gcc2 va_copy defines after previous haiku commit.

Ozkan Sezer 3 년 전
부모
커밋
0abc0a6f32
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/stdlib/SDL_string.c

+ 1 - 3
src/stdlib/SDL_string.c

@@ -32,9 +32,7 @@
 /* Visual Studio 2013 tries to link with _vacopy in the C runtime. Newer versions do an inline assignment */
 #undef va_copy
 #define va_copy(dst, src)   dst = src
-#endif
-
-#if __GNUC__ == 2
+#elif defined(__GNUC__) && (__GNUC__ < 3)
 #define va_copy(to, from)   __va_copy(to, from)
 #endif