diff options
Diffstat (limited to 'src/librc/rc.h.in')
-rw-r--r-- | src/librc/rc.h.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/librc/rc.h.in b/src/librc/rc.h.in index c2a919fc..5cd584f0 100644 --- a/src/librc/rc.h.in +++ b/src/librc/rc.h.in @@ -31,6 +31,16 @@ #include <stdbool.h> #include <stdio.h> +#undef __BEGIN_DECLS +#undef __END_DECLS +#ifdef __cplusplus +# define __BEGIN_DECLS extern "C" { +# define __END_DECLS } +#else +# define __BEGIN_DECLS /* empty */ +# define __END_DECLS /* empty */ +#endif + __BEGIN_DECLS #define RC_PREFIX "@PREFIX@" |