mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-07-09 02:26:23 +00:00
__cplusplus is standard; the others are unneeded.
This commit is contained in:
4
curses.h
4
curses.h
@@ -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
|
||||
|
||||
4
panel.h
4
panel.h
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user