Skip to content
Snippets Groups Projects
Commit 712a53cf authored by Claus-Justus Heine's avatar Claus-Justus Heine
Browse files

Make sure this beast also compiles on non-GNU systems.
parent b5cb91bb
No related branches found
No related tags found
No related merge requests found
......@@ -105,12 +105,17 @@ void (*obstack_alloc_failed_handler) (void) = print_and_abort;
/* Exit value used when `print_and_abort' is used. */
# include <stdlib.h>
#if 0
# ifdef _LIBC
int obstack_exit_failure = EXIT_FAILURE;
# else
# include "exitfail.h"
# define obstack_exit_failure exit_failure
# endif
#else
int obstack_exit_failure = 1;
#endif
# ifdef _LIBC
# if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)
......@@ -400,6 +405,8 @@ _obstack_memory_used (struct obstack *h)
return nbytes;
}
#if 0
/* Define the error handler. */
# ifdef _LIBC
# include <libintl.h>
......@@ -409,6 +416,11 @@ _obstack_memory_used (struct obstack *h)
# ifndef _
# define _(msgid) gettext (msgid)
# endif
#else
# ifndef _
# define _(msgid) msgid
# endif
#endif
# ifdef _LIBC
# include <libio/iolibio.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment