summaryrefslogtreecommitdiff
path: root/lib/argp-namefrob.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2005-07-09 17:20:04 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2005-07-09 17:20:04 +0000
commitd3195542b41d5b8bb6e282211cc52b6c73afaccf (patch)
tree140465d2114e62cb94c096100e191257c4aa03ba /lib/argp-namefrob.h
parent01f217023fc34031b85f16838c74d507ce06ec63 (diff)
downloadgnulib-d3195542b41d5b8bb6e282211cc52b6c73afaccf.tar.gz
Include unlocked-io.h. Remove unnecessary block of defines.
Diffstat (limited to 'lib/argp-namefrob.h')
-rw-r--r--lib/argp-namefrob.h41
1 files changed, 1 insertions, 40 deletions
diff --git a/lib/argp-namefrob.h b/lib/argp-namefrob.h
index 1fda567272..14f404307a 100644
--- a/lib/argp-namefrob.h
+++ b/lib/argp-namefrob.h
@@ -80,6 +80,7 @@
#include "strcase.h"
#include "strchrnul.h"
#include "strndup.h"
+#include "unlocked-io.h"
/* normal libc functions we call */
#undef __flockfile
@@ -101,46 +102,6 @@
#undef __vsnprintf
#define __vsnprintf vsnprintf
-#if defined(HAVE_DECL_CLEARERR_UNLOCKED) && !HAVE_DECL_CLEARERR_UNLOCKED
-# define clearerr_unlocked(x) clearerr (x)
-#endif
-#if defined(HAVE_DECL_FEOF_UNLOCKED) && !HAVE_DECL_FEOF_UNLOCKED
-# define feof_unlocked(x) feof (x)
-# endif
-#if defined(HAVE_DECL_FERROR_UNLOCKED) && !HAVE_DECL_FERROR_UNLOCKED
-# define ferror_unlocked(x) ferror (x)
-# endif
-#if defined(HAVE_DECL_FFLUSH_UNLOCKED) && !HAVE_DECL_FFLUSH_UNLOCKED
-# define fflush_unlocked(x) fflush (x)
-# endif
-#if defined(HAVE_DECL_FGETS_UNLOCKED) && !HAVE_DECL_FGETS_UNLOCKED
-# define fgets_unlocked(x,y,z) fgets (x,y,z)
-# endif
-#if defined(HAVE_DECL_FPUTC_UNLOCKED) && !HAVE_DECL_FPUTC_UNLOCKED
-# define fputc_unlocked(x,y) fputc (x,y)
-# endif
-#if defined(HAVE_DECL_FPUTS_UNLOCKED) && !HAVE_DECL_FPUTS_UNLOCKED
-# define fputs_unlocked(x,y) fputs (x,y)
-# endif
-#if defined(HAVE_DECL_FREAD_UNLOCKED) && !HAVE_DECL_FREAD_UNLOCKED
-# define fread_unlocked(w,x,y,z) fread (w,x,y,z)
-# endif
-#if defined(HAVE_DECL_FWRITE_UNLOCKED) && !HAVE_DECL_FWRITE_UNLOCKED
-# define fwrite_unlocked(w,x,y,z) fwrite (w,x,y,z)
-# endif
-#if defined(HAVE_DECL_GETC_UNLOCKED) && !HAVE_DECL_GETC_UNLOCKED
-# define getc_unlocked(x) getc (x)
-# endif
-#if defined(HAVE_DECL_GETCHAR_UNLOCKED) && !HAVE_DECL_GETCHAR_UNLOCKED
-# define getchar_unlocked() getchar ()
-# endif
-#if defined(HAVE_DECL_PUTC_UNLOCKED) && !HAVE_DECL_PUTC_UNLOCKED
-# define putc_unlocked(x,y) putc (x,y)
-# endif
-#if defined(HAVE_DECL_PUTCHAR_UNLOCKED) && !HAVE_DECL_PUTCHAR_UNLOCKED
-# define putchar_unlocked(x) putchar (x)
-# endif
-
extern char *__argp_basename (char *name);
#endif /* !_LIBC */