os: Ensure header includes are outside extern "C" {}.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 4 Feb 2010 18:24:57 +0000 (18:24 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 4 Feb 2010 18:24:57 +0000 (18:24 +0000)
src/gallium/auxiliary/os/os_misc.h

index 56e48ca..d59f981 100644 (file)
 #include "pipe/p_compiler.h"
 
 
+#if defined(PIPE_OS_UNIX)
+#  include <signal.h> /* for kill() */
+#  include <unistd.h> /* getpid() */
+#endif
+
+
 #ifdef  __cplusplus
 extern "C" {
 #endif
@@ -51,8 +57,6 @@ extern "C" {
 #elif defined(PIPE_CC_MSVC)
 #  define os_break()  __debugbreak()
 #elif defined(PIPE_OS_UNIX)
-#  include <signal.h> /* for kill() */
-#  include <unistd.h> /* for getpid() */
 #  define os_break() kill(getpid(), SIGTRAP)
 #elif defined(PIPE_OS_EMBEDDED)
 void os_break(void);