os: Ensure header includes are outside extern "C" {}.

This commit is contained in:
José Fonseca 2010-02-04 18:24:57 +00:00
parent 5ee324ad3c
commit 0eb8e77ffb

View file

@ -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);