There was a transcription error in the comments in cstd.h for the standard list of header files, where only the description remained for <stdlib.h>, not the name of the file itself. Remove several extraneous inclusions of the standard C99 headers. Tested on the following afterwards: Linux (using hints/linux.370) including tty, curses, qt6, and X11 macOS (using hints/macOS.370) including tty, curses, qt5, and X11 Windows MSYS2 using sys/windows/GNUmakefile Windows Visual Studio using sys/windows/Makefile.nmake msdos cross-compile on Ubuntu using djgpp cross-compiler
57 lines
1.2 KiB
C
57 lines
1.2 KiB
C
/* NetHack 3.7 win32api.h $NHDT-Date: 1596498320 2020/08/03 23:45:20 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.15 $ */
|
|
/* Copyright (c) NetHack PC Development Team 1996 */
|
|
/* NetHack may be freely redistributed. See license for details. */
|
|
|
|
/*
|
|
* This header file is used to clear up some discrepancies with Visual C
|
|
* header files & NetHack before including windows.h, so all NetHack
|
|
* files should include "win32api.h" rather than <windows.h>.
|
|
*/
|
|
#ifndef WIN32API
|
|
#define WIN32API
|
|
|
|
#if defined(HACK_H)
|
|
#error win32api.h must be included before hack.h
|
|
#endif
|
|
|
|
#if defined(strcmpi)
|
|
#error win32api.h should be included first
|
|
#endif
|
|
|
|
#if defined(min)
|
|
#error win32api.h should be included first
|
|
#endif
|
|
|
|
#if defined(max)
|
|
#error win32api.h should be included first
|
|
#endif
|
|
|
|
#if defined(Protection)
|
|
#error win32api.h should be included first
|
|
#endif
|
|
|
|
#include "config.h"
|
|
|
|
#if defined(_MSC_VER)
|
|
#pragma warning(disable : 4142) /* Warning, Benign redefinition of type */
|
|
#pragma pack(8)
|
|
#endif
|
|
|
|
#ifdef DEBUG
|
|
#define _CRTDBG_MAP_ALLOC
|
|
#include <crtdbg.h>
|
|
#endif
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#include <windows.h>
|
|
#include <commctrl.h>
|
|
|
|
#if defined(_MSC_VER)
|
|
#pragma pack()
|
|
#endif
|
|
|
|
#endif // WIN32API
|
|
|
|
/*win32api.h*/
|