diff --git a/Libraries/LibC/sys/cdefs.h b/Libraries/LibC/sys/cdefs.h index f83fbad3c2..542509a949 100644 --- a/Libraries/LibC/sys/cdefs.h +++ b/Libraries/LibC/sys/cdefs.h @@ -7,11 +7,15 @@ #endif #ifdef __cplusplus -# define __BEGIN_DECLS extern "C" { -# define __END_DECLS } +# ifndef __BEGIN_DECLS +# define __BEGIN_DECLS extern "C" { +# define __END_DECLS } +# endif #else -# define __BEGIN_DECLS -# define __END_DECLS +# ifndef __BEGIN_DECLS +# define __BEGIN_DECLS +# define __END_DECLS +# endif #endif #undef __P