From f2a2c2787b40dd15a3f4e9fe59560d1313fa339a Mon Sep 17 00:00:00 2001 From: Mark Hessling Date: Tue, 28 Jun 2005 01:14:07 +0000 Subject: [PATCH] Don't include stdio.h and stdlib.h inside the "extern C" declarations --- curses.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/curses.h b/curses.h index 8653c3f3..6faddc88 100644 --- a/curses.h +++ b/curses.h @@ -18,7 +18,7 @@ *************************************************************************** */ /* -$Id: curses.h,v 1.24 2004/12/16 00:56:10 rexx Exp $ +$Id: curses.h,v 1.25 2005/06/28 01:14:07 rexx Exp $ */ /* *---------------------------------------------------------------------- @@ -125,11 +125,6 @@ $Id: curses.h,v 1.24 2004/12/16 00:56:10 rexx Exp $ * *---------------------------------------------------------------------- */ -#if defined(__cplusplus) || defined(__cplusplus__) || defined(__CPLUSPLUS) - extern "C" - { -# define bool _bool -#endif #ifndef __PDCURSES__ #define __PDCURSES__ 1 @@ -757,6 +752,13 @@ PDCurses portable platform definitions list: /*---------------------------------------------------------------------*/ #include /* Required by X/Open usage below */ + +#if defined(__cplusplus) || defined(__cplusplus__) || defined(__CPLUSPLUS) + extern "C" + { +# define bool _bool +#endif + /*---------------------------------------------------------------------- * * PDCurses Manifest Constants @@ -2014,8 +2016,6 @@ int PDC_CDECL PDC_set_line_color Args(( short )); # include #endif -#include - #endif /* __PDCURSES__ */ #if defined(__cplusplus) || defined(__cplusplus__) || defined(__CPLUSPLUS) @@ -2023,4 +2023,6 @@ int PDC_CDECL PDC_set_line_color Args(( short )); } #endif +#include +