gallium: Move some compiler portability stuff into p_compiler.h
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 2 Feb 2010 20:55:08 +0000 (20:55 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 2 Feb 2010 20:55:08 +0000 (20:55 +0000)
src/gallium/auxiliary/util/u_debug.h
src/gallium/include/pipe/p_compiler.h

index facc30a..c9cd56f 100644 (file)
@@ -39,8 +39,6 @@
 #define U_DEBUG_H_
 
 
-#include <stdarg.h>
-
 #include "pipe/p_compiler.h"
 
 
@@ -60,11 +58,6 @@ extern "C" {
 #endif
 
    
-/* MSVC bebore VC7 does not have the __FUNCTION__ macro */
-#if defined(_MSC_VER) && _MSC_VER < 1300
-#define __FUNCTION__ "???"
-#endif
-
 #if defined(__GNUC__)
 #define _util_printf_format(fmt, list) __attribute__ ((format (printf, fmt, list)))
 #else
index b02d3ff..84956a2 100644 (file)
@@ -39,6 +39,7 @@
 #include "xf86_libc.h"
 #endif
 #include <stddef.h>
+#include <stdarg.h>
 
 
 #if defined(_WIN32) && !defined(__WIN32__)
@@ -126,6 +127,9 @@ typedef unsigned char boolean;
 #   define __FUNCTION__ "<unknown>"
 #  endif
 # endif
+# if defined(_MSC_VER) && _MSC_VER < 1300
+#  define __FUNCTION__ "<unknown>"
+# endif
 #endif