From a9d23be2f3e79072dfb59e73f79150b0b9ce2408 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 29 Oct 2008 00:48:57 +0000 Subject: [PATCH] Don't define "protected" macro in C++ mode. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28362 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/compatibility/bsd/sys/cdefs.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/headers/compatibility/bsd/sys/cdefs.h b/headers/compatibility/bsd/sys/cdefs.h index cfbf31b54d..c732632040 100644 --- a/headers/compatibility/bsd/sys/cdefs.h +++ b/headers/compatibility/bsd/sys/cdefs.h @@ -11,7 +11,10 @@ #define __FBSDID(x) #define __unused -#define protected + +#ifndef __cplusplus +# define protected +#endif #define __printflike(a, b) __attribute__ ((format (__printf__, (a), (b)))) #define __printf0like(a, b)