summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/os
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-02-04 18:24:57 +0000
committerJosé Fonseca <jfonseca@vmware.com>2010-02-04 18:24:57 +0000
commit0eb8e77ffba9704c3d7ac8aa29e2640fb7002754 (patch)
tree4b43fd2faa155e5ca20bd8802ba5d2a64d7e690d /src/gallium/auxiliary/os
parent5ee324ad3cfe62de661a1a6a7a60b2eec5738ef1 (diff)
os: Ensure header includes are outside extern "C" {}.
Diffstat (limited to 'src/gallium/auxiliary/os')
-rw-r--r--src/gallium/auxiliary/os/os_misc.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/os/os_misc.h b/src/gallium/auxiliary/os/os_misc.h
index 56e48ca9be..d59f9819fe 100644
--- a/src/gallium/auxiliary/os/os_misc.h
+++ b/src/gallium/auxiliary/os/os_misc.h
@@ -38,6 +38,12 @@
#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);