more C standard progress
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
This commit is contained in:
@@ -27,9 +27,9 @@
|
||||
* <stddef.h> Common macro definitions
|
||||
* <stdint.h> (C99) Fixed-width integer types
|
||||
* <stdio.h> Input/output program utilities
|
||||
*
|
||||
* General utilities: memory management, program utilities, string
|
||||
* conversions, random numbers, algorithms
|
||||
* <stdlib.h> General utilities: memory management,
|
||||
* program utilities, string conversions,
|
||||
* random numbers, algorithms
|
||||
* <string.h> String handling
|
||||
* <tgmath.h> (C99) Type-generic math (macros wrapping math.h and
|
||||
* complex.h)
|
||||
@@ -51,13 +51,17 @@
|
||||
*
|
||||
*/
|
||||
#if !defined(__cplusplus)
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <signal.h>
|
||||
#include <assert.h>
|
||||
#include <stdarg.h>
|
||||
#include <ctype.h>
|
||||
#include <time.h>
|
||||
|
||||
#else /* !__cplusplus */
|
||||
/* for FILE */
|
||||
#include <stdio.h>
|
||||
#endif /* !__cplusplus */
|
||||
#endif /* CSTD_H */
|
||||
|
||||
Reference in New Issue
Block a user