From: José Fonseca Date: Thu, 4 Feb 2010 18:24:57 +0000 (+0000) Subject: os: Ensure header includes are outside extern "C" {}. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0eb8e77ffba9704c3d7ac8aa29e2640fb7002754;p=mesa.git os: Ensure header includes are outside extern "C" {}. --- diff --git a/src/gallium/auxiliary/os/os_misc.h b/src/gallium/auxiliary/os/os_misc.h index 56e48ca9bee..d59f9819fec 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 /* for kill() */ +# include /* 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 /* for kill() */ -# include /* for getpid() */ # define os_break() kill(getpid(), SIGTRAP) #elif defined(PIPE_OS_EMBEDDED) void os_break(void);