diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-07 23:40:19 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-07 23:40:19 +0000 |
commit | 1bcf5ab8212c7c464f0129892b994f795f69ff7b (patch) | |
tree | 92ea63ec5cc5860eecb13fd72d51074de7032172 /gcc/system.h | |
parent | 69f591dc9fadfeb04afac02bcde7d11e1b103b99 (diff) | |
download | gcc-1bcf5ab8212c7c464f0129892b994f795f69ff7b.tar.gz |
* configure.in: Test for availability of putc_unlocked, fputc_unlocked,
and fputs_unlocked.
* configure: Rebuilt.
* system.h: If the *_unlocked functions are available use them
instead of the locked counterparts by defining macros.
* config.in: Regenerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24175 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h index 47a3b407d7b..daa47eb1bbd 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -21,6 +21,21 @@ #define NULL 0 #endif +/* The compiler is not a multi-threaded application and therefore we + do not have to use the locking functions. */ +#ifdef HAVE_PUTC_UNLOCKED +# undef putc +# define putc(C, Stream) putc_unlocked (C, Stream) +#endif +#ifdef HAVE_FPUTC_UNLOCKED +# undef fputc +# define fputc(C, Stream) fputc_unlocked (C, Stream) +#endif +#ifdef HAVE_FPUTS_UNLOCKED +# undef fputs +# define fputs(String, Stream) fputs_unlocked (String, Stream) +#endif + #include <ctype.h> /* Jim Meyering writes: |