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
Branches
Tags
No related merge requests found
...@@ -105,12 +105,17 @@ void (*obstack_alloc_failed_handler) (void) = print_and_abort; ...@@ -105,12 +105,17 @@ void (*obstack_alloc_failed_handler) (void) = print_and_abort;
/* Exit value used when `print_and_abort' is used. */ /* Exit value used when `print_and_abort' is used. */
# include <stdlib.h> # include <stdlib.h>
#if 0
# ifdef _LIBC # ifdef _LIBC
int obstack_exit_failure = EXIT_FAILURE; int obstack_exit_failure = EXIT_FAILURE;
# else # else
# include "exitfail.h" # include "exitfail.h"
# define obstack_exit_failure exit_failure # define obstack_exit_failure exit_failure
# endif # endif
#else
int obstack_exit_failure = 1;
#endif
# ifdef _LIBC # ifdef _LIBC
# if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4) # if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_3_4)
...@@ -400,6 +405,8 @@ _obstack_memory_used (struct obstack *h) ...@@ -400,6 +405,8 @@ _obstack_memory_used (struct obstack *h)
return nbytes; return nbytes;
} }
#if 0
/* Define the error handler. */ /* Define the error handler. */
# ifdef _LIBC # ifdef _LIBC
# include <libintl.h> # include <libintl.h>
...@@ -409,6 +416,11 @@ _obstack_memory_used (struct obstack *h) ...@@ -409,6 +416,11 @@ _obstack_memory_used (struct obstack *h)
# ifndef _ # ifndef _
# define _(msgid) gettext (msgid) # define _(msgid) gettext (msgid)
# endif # endif
#else
# ifndef _
# define _(msgid) msgid
# endif
#endif
# ifdef _LIBC # ifdef _LIBC
# include <libio/iolibio.h> # 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