Commit 0abc0a6f323179cbc501ad6e30b6d17f19c30fc4

Ozkan Sezer 2022-01-12T20:37:32

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/stdlib/SDL_string.c b/src/stdlib/SDL_string.c
index bc46aec..695fccb 100644
--- a/src/stdlib/SDL_string.c
+++ b/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