LibC: Fix warnings in sys/cdefs.h if __BEGIN_DECLS is already defined

This commit is contained in:
Andreas Kling 2019-09-23 18:58:12 +02:00
commit a3575f3c60
Notes: sideshowbarker 2024-07-19 11:59:54 +09:00

View file

@ -7,12 +7,16 @@
#endif
#ifdef __cplusplus
# ifndef __BEGIN_DECLS
# define __BEGIN_DECLS extern "C" {
# define __END_DECLS }
# endif
#else
# ifndef __BEGIN_DECLS
# define __BEGIN_DECLS
# define __END_DECLS
# endif
#endif
#undef __P
#define __P(a) a