mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 12:20:10 +01:00
os: Ensure header includes are outside extern "C" {}.
This commit is contained in:
parent
5ee324ad3c
commit
0eb8e77ffb
1 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue