mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-25 00:05:16 +00:00
Don't include stdio.h and stdlib.h inside the "extern C" declarations
This commit is contained in:
18
curses.h
18
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 <stdio.h> /* 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 <curspriv.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#endif /* __PDCURSES__ */
|
||||
|
||||
#if defined(__cplusplus) || defined(__cplusplus__) || defined(__CPLUSPLUS)
|
||||
@@ -2023,4 +2023,6 @@ int PDC_CDECL PDC_set_line_color Args(( short ));
|
||||
}
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user