diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h index 85472837c0..ccde1eec7d 100644 --- a/include/asterisk/compat.h +++ b/include/asterisk/compat.h @@ -22,10 +22,12 @@ #include "asterisk/compiler.h" +#if !defined(__cplusplus) && !defined(c_plusplus) #ifndef __STDC_VERSION__ /* flex output wants to find this defined. */ #define __STDC_VERSION__ 0 #endif +#endif #include #include