einfo.h, rc.h.in: simplify __BEGIN_DECLS logic

There is no need to redefine __BEGIN_DECLS and __END_DECLS.
We simplify the logic here and avoid undefining these macros.
This commit is contained in:
Anthony G. Basile
2014-10-22 07:46:49 -04:00
parent 4a08517cac
commit 86e9aa0d36
2 changed files with 14 additions and 20 deletions

View File

@@ -48,18 +48,11 @@
# endif
#endif
#undef __BEGIN_DECLS
#undef __END_DECLS
/* __BEGIN_DECLS */
#ifdef __cplusplus
# define __BEGIN_DECLS extern "C" {
# define __END_DECLS }
#else
# define __BEGIN_DECLS /* empty */
# define __END_DECLS /* empty */
extern "C" {
#endif
__BEGIN_DECLS
/*! @brief Color types to use */
typedef enum
{
@@ -150,5 +143,9 @@ void eoutdentv(void);
/*! @brief Prefix each einfo line with something */
void eprefix(const char * EINFO_RESTRICT);
__END_DECLS
/* __END_DECLS */
#ifdef __cplusplus
}
#endif
#endif