+2016-04-26 Keith Marshall <keithmarshall@users.sourceforge.net>
+
+ Use correct paths for partially included header files.
+
+ * include/io.h include/process.h: Use 'iquote' #include "stdint.h", to
+ ensure that we get stdint.h from the same include directory.
+ * include/stdio.h: Likewise for #include "stdarg.h", and "sys/types.h"
+ * include/wchar.h: Likewise for all of #include "stdio.h", "stdlib.h",
+ "direct.h", "sys/stat.h", "io.h", "time.h", "locale.h", and "process.h"
+ * include/dir.h include/dos.h: Likewise for #include "io.h"
+ * include/direct.h: Likewise for #include "dos.h"
+
2016-04-13 Keith Marshall <keithmarshall@users.sourceforge.net>
Generalize procedure for installing manpages.
#define _DIR_H
#warning "<dir.h> is obsolete; please use <io.h> instead."
-#include <io.h>
+#include "io.h"
#endif /* !_DIR_H: $RCSfile$: end of file */
* from <dos.h>; thus, we may simply include <dos.h> here, and let
* it take care of including both <mingw.h> and <io.h> for us.
*/
-#include <dos.h>
+#include "dos.h"
#undef __DIRECT_H_SOURCED__
#endif /* !__WCHAR_H_SOURCED__ */
* it, while also allowing <direct.h> to delegate responsibility for the
* inclusion of both <_mingw.h> and <io.h> to us.
*/
-#include <io.h>
+#include "io.h"
#ifndef RC_INVOKED
#endif /* !__WCHAR_H_SOURCED__ */
/* This will give us intptr_t, which we need in ALL cases, whether
- * including <io.h> directly, or selectively via <wchar.h>.
+ * including <io.h> directly, or selectively via <wchar.h>; (note: we
+ * use the #include "..." form here, to ensure that we read the type
+ * definition directly from the stdint.h header located in the same
+ * directory as this <io.h> file).
*/
#define __need_intptr_t
-#include <stdint.h>
+#include "stdint.h"
/* Attributes of files as returned by _findfirst() et al. MSDN is not
* explicit about whether or not these should be defined when including
/* All Microsoft implementations of the exec() and spawn() functions
* are declared with intptr_t as their return type; get its definition
- * by selective inclusion from <stdint.h>.
+ * by selective inclusion from "stdint.h"; (note: use #include "..."
+ * here, to avoid side effects from any alternative <stdint.h>, which
+ * is not in the same directory as this <process.h>).
*/
#define __need_intptr_t
-#include <stdint.h>
+#include "stdint.h"
_BEGIN_C_DECLS
_END_C_DECLS
#endif /* ! RC_INVOKED */
-#endif /* !_PROCESS_H: $RCSfile$: endof file */
+#endif /* !_PROCESS_H: $RCSfile$: end of file */
* preceding groups...
*/
#if defined __need_off_t || defined __need___off64_t
- /* ...to identify a requirement for selective inclusion from...
+ /* ...to identify a requirement for selective inclusion of one or more
+ * of these type definitions from "sys/types.h"; (note that we use the
+ * #include "..." form here, to ensure that we get the correct header
+ * file, relative to the location of this <stdio.h>).
*/
-# include <sys/types.h>
+# include "sys/types.h"
#endif
#ifndef __VALIST
- /* Also similarly, for the va_list type, defined in <stdarg.h>
+ /* Also similarly, for the va_list type, defined in "stdarg.h"
*/
# if defined __GNUC__ && __GNUC__ >= 3
# define __need___va_list
-# include <stdarg.h>
+# include "stdarg.h"
# define __VALIST __builtin_va_list
# else
# define __VALIST char *
* retrieve the overlapping content, without requiring duplication of
* that content here; thus, from...
*/
-#include <stdio.h>
+#include "stdio.h"
/* ...we obtain (possibly indirect) definitions and declarations for:
*
* macros NULL, FILENAME_MAX
*
* In similar fashion, from...
*/
-#include <stdlib.h>
+#include "stdlib.h"
/* ...we obtain prototypes for universally supported functions:
*
* long wcstol (const wchar_t *, wchar_t **, int);
*
* while from...
*/
-#include <direct.h>
+#include "direct.h"
/* ...we obtain prototypes for each of the following functions,
* (none of which are available when using CRTDLL.DLL):
*
*
* From...
*/
-#include <sys/stat.h>
+#include "sys/stat.h"
/* ...we obtain function prototypes, and all associated data type
* definitions for this pair of actual functions, in all versions of
* MSVCRT.DLL, and its non-free derivatives preceding MSVCR80.DLL, (or
*
* while from...
*/
-#include <io.h>
+#include "io.h"
/* ...we obtain function prototypes for each of the following, which
* are available in all versions of MSVCRT.DLL, (and all its non-free
* derivatives), but are not supported by CRTDLL.DLL:
*
* and from...
*/
-#include <time.h>
+#include "time.h"
/* ...we obtain an opaque forward declaration of:
*
* struct tm
*
* Also, from...
*/
-#include <locale.h>
+#include "locale.h"
/* ...we obtain the declaration for:
*
* wchar_t *_wsetlocale (int, const wchar_t *);
*
* and from...
*/
-#include <process.h>
+#include "process.h"
/* ...we obtain function prototypes for:
*
* intptr_t _wexecl (const wchar_t *, const wchar_t *, ...);