diff options
Diffstat (limited to 'assert')
-rw-r--r-- | assert/assert-perr.c | 6 | ||||
-rw-r--r-- | assert/assert.c | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/assert/assert-perr.c b/assert/assert-perr.c index cdc07b5..ab6f55f 100644 --- a/assert/assert-perr.c +++ b/assert/assert-perr.c @@ -24,13 +24,17 @@ extern const char *__assert_program_name; /* In assert.c. */ +#ifdef USE_IN_LIBIO +# define fflush(s) _IO_fflush (s) +#endif + /* This function, when passed an error number, a filename, and a line number, prints a message on the standard error stream of the form: a.c:10: foobar: Unexpected error: Computer bought the farm It then aborts program execution via a call to `abort'. */ #ifdef FATAL_PREPARE_INCLUDE -#include FATAL_PREPARE_INCLUDE +# include FATAL_PREPARE_INCLUDE #endif void diff --git a/assert/assert.c b/assert/assert.c index 33c6845..1640fb0 100644 --- a/assert/assert.c +++ b/assert/assert.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1994, 1995, 1996 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1994, 1995, 1996, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -24,6 +24,10 @@ const char *__assert_program_name; +#ifdef USE_IN_LIBIO +# define fflush(s) _IO_fflush (s) +#endif + /* This function, when passed a string containing an asserted expression, a filename, and a line number, prints a message on the standard error stream of the form: @@ -31,7 +35,7 @@ const char *__assert_program_name; It then aborts program execution via a call to `abort'. */ #ifdef FATAL_PREPARE_INCLUDE -#include FATAL_PREPARE_INCLUDE +# include FATAL_PREPARE_INCLUDE #endif void |