changeset 85560:e589708fefc2

(HAVE_STRINGS_H, HAVE_STDLIB_H): Undefine. (strings.h, stdlib.h): Conditionally include. (w32_abort): Declare here. (abort): Redefine to w32_abort (moved from src/s/ms-w32.h).
author Jason Rumney <jasonr@gnu.org>
date Mon, 22 Oct 2007 22:38:56 +0000
parents 07295b6c20b4
children 70024c01bdfa
files nt/config.nt
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/nt/config.nt	Mon Oct 22 22:21:45 2007 +0000
+++ b/nt/config.nt	Mon Oct 22 22:38:56 2007 +0000
@@ -140,6 +140,8 @@
 #undef HAVE_TERMIOS_H
 #undef HAVE_LIMITS_H
 #undef HAVE_STRING_H
+#undef HAVE_STRINGS_H
+#undef HAVE_STDLIB_H
 #undef HAVE_PWD_H
 #undef STDC_HEADERS
 #undef TIME_WITH_SYS_TIME
@@ -469,6 +471,12 @@
 #ifdef HAVE_STRING_H
 #include "string.h"
 #endif
+#ifdef HAVE_STRINGS_H
+#include "strings.h"
+#endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
 #endif
 
 #ifndef NO_RETURN
@@ -479,5 +487,13 @@
 #endif
 #endif
 
+/* Redefine abort.  */
+#ifndef NOT_C_CODE
+#ifdef HAVE_NTGUI
+#define abort	w32_abort
+void w32_abort (void) NO_RETURN;
+#endif
+#endif
+
 /* arch-tag: df720992-aa5a-499a-882d-958dc5eeb5e9
    (do not change this comment) */