xref: /freebsd/contrib/ncurses/include/ncurses_cfg.hin (revision 7a65641922f404b84e9a249d48593de84d8e8d17)
10e3d5408SPeter Wemm/****************************************************************************
2e1865124SBaptiste Daroussin * Copyright 2020 Thomas E. Dickey                                          *
3e1865124SBaptiste Daroussin * Copyright 1998-2016,2017 Free Software Foundation, Inc.                  *
40e3d5408SPeter Wemm *                                                                          *
50e3d5408SPeter Wemm * Permission is hereby granted, free of charge, to any person obtaining a  *
60e3d5408SPeter Wemm * copy of this software and associated documentation files (the            *
70e3d5408SPeter Wemm * "Software"), to deal in the Software without restriction, including      *
80e3d5408SPeter Wemm * without limitation the rights to use, copy, modify, merge, publish,      *
90e3d5408SPeter Wemm * distribute, distribute with modifications, sublicense, and/or sell       *
100e3d5408SPeter Wemm * copies of the Software, and to permit persons to whom the Software is    *
110e3d5408SPeter Wemm * furnished to do so, subject to the following conditions:                 *
120e3d5408SPeter Wemm *                                                                          *
130e3d5408SPeter Wemm * The above copyright notice and this permission notice shall be included  *
140e3d5408SPeter Wemm * in all copies or substantial portions of the Software.                   *
150e3d5408SPeter Wemm *                                                                          *
160e3d5408SPeter Wemm * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
170e3d5408SPeter Wemm * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
180e3d5408SPeter Wemm * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
190e3d5408SPeter Wemm * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
200e3d5408SPeter Wemm * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
210e3d5408SPeter Wemm * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
220e3d5408SPeter Wemm * THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
230e3d5408SPeter Wemm *                                                                          *
240e3d5408SPeter Wemm * Except as contained in this notice, the name(s) of the above copyright   *
250e3d5408SPeter Wemm * holders shall not be used in advertising or otherwise to promote the     *
260e3d5408SPeter Wemm * sale, use or other dealings in this Software without prior written       *
270e3d5408SPeter Wemm * authorization.                                                           *
280e3d5408SPeter Wemm ****************************************************************************/
290e3d5408SPeter Wemm
300e3d5408SPeter Wemm/****************************************************************************
31aae38d10SBaptiste Daroussin *  Author: Thomas E. Dickey      1997-on                                   *
320e3d5408SPeter Wemm ****************************************************************************/
330e3d5408SPeter Wemm/*
34*7a656419SBaptiste Daroussin * $Id: ncurses_cfg.hin,v 1.13 2020/03/08 12:37:59 tom Exp $
35aae38d10SBaptiste Daroussin *
36aae38d10SBaptiste Daroussin * Both ncurses_cfg.h and ncurses_def.h are internal header-files used when
37aae38d10SBaptiste Daroussin * building ncurses.
380e3d5408SPeter Wemm *
390e3d5408SPeter Wemm * This is a template-file used to generate the "ncurses_cfg.h" file.
400e3d5408SPeter Wemm *
4118259542SPeter Wemm * Rather than list every definition, the configuration script substitutes the
4218259542SPeter Wemm * definitions that it finds using 'sed'.  You need a patch (original date
4318259542SPeter Wemm * 971222) to autoconf 2.12 or 2.13 to do this.
4418259542SPeter Wemm *
4518259542SPeter Wemm * See:
46*7a656419SBaptiste Daroussin *	https://invisible-island.net/autoconf/
47aae38d10SBaptiste Daroussin *	ftp://ftp.invisible-island.net/autoconf/
480e3d5408SPeter Wemm */
490e3d5408SPeter Wemm#ifndef NC_CONFIG_H
500e3d5408SPeter Wemm#define NC_CONFIG_H
510e3d5408SPeter Wemm@DEFS@
520e3d5408SPeter Wemm
5318259542SPeter Wemm#include <ncurses_def.h>
5418259542SPeter Wemm
550e3d5408SPeter Wemm	/* The C compiler may not treat these properly but C++ has to */
560e3d5408SPeter Wemm#ifdef __cplusplus
570e3d5408SPeter Wemm#undef const
580e3d5408SPeter Wemm#undef inline
590e3d5408SPeter Wemm#endif
600e3d5408SPeter Wemm
614a1a9510SRong-En Fan	/* On HP-UX, the C compiler doesn't grok mbstate_t without
624a1a9510SRong-En Fan	   -D_XOPEN_SOURCE=500. However, this causes problems on
634a1a9510SRong-En Fan	   IRIX. So, we #define mbstate_t to int in configure.in
644a1a9510SRong-En Fan	   only for the C compiler if needed. */
654a1a9510SRong-En Fan#ifndef __cplusplus
664a1a9510SRong-En Fan#ifdef NEED_MBSTATE_T_DEF
674a1a9510SRong-En Fan#define mbstate_t int
684a1a9510SRong-En Fan#endif
694a1a9510SRong-En Fan#endif
704a1a9510SRong-En Fan
71aae38d10SBaptiste Daroussin/*
72aae38d10SBaptiste Daroussin * vile:cmode
73aae38d10SBaptiste Daroussin */
740e3d5408SPeter Wemm#endif /* NC_CONFIG_H */
75