__cplusplus is standard; the others are unneeded.

This commit is contained in:
William McBrine
2018-12-29 06:38:15 -05:00
parent 2b9bb5d0c8
commit 13889c2fe8
2 changed files with 4 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ PDCurses portable platform definitions list:
# include <wchar.h>
#endif
#if defined(__cplusplus) || defined(__cplusplus__) || defined(__CPLUSPLUS)
#ifdef __cplusplus
extern "C"
{
# define bool _bool
@@ -1341,7 +1341,7 @@ PDCEX int sb_refresh(void);
#define PDC_KEY_MODIFIER_ALT 4
#define PDC_KEY_MODIFIER_NUMLOCK 8
#if defined(__cplusplus) || defined(__cplusplus__) || defined(__CPLUSPLUS)
#ifdef __cplusplus
# undef bool
}
#endif

View File

@@ -9,7 +9,7 @@
#include <curses.h>
#if defined(__cplusplus) || defined(__cplusplus__) || defined(__CPLUSPLUS)
#ifdef __cplusplus
extern "C"
{
#endif
@@ -49,7 +49,7 @@ PDCEX int show_panel(PANEL *pan);
PDCEX int top_panel(PANEL *pan);
PDCEX void update_panels(void);
#if defined(__cplusplus) || defined(__cplusplus__) || defined(__CPLUSPLUS)
#ifdef __cplusplus
}
#endif