projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ee324a
)
os: Ensure header includes are outside extern "C" {}.
author
José Fonseca
<jfonseca@vmware.com>
Thu, 4 Feb 2010 18:24:57 +0000
(18:24 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 4 Feb 2010 18:24:57 +0000
(18:24 +0000)
src/gallium/auxiliary/os/os_misc.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/os/os_misc.h
b/src/gallium/auxiliary/os/os_misc.h
index 56e48ca9bee4bad4afafcad2dd39eb785a6d4753..d59f9819feca69f144610a07cc0c7225232b14d3 100644
(file)
--- 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);