diff options
Diffstat (limited to 'gl/unlocked-io.h')
| -rw-r--r-- | gl/unlocked-io.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gl/unlocked-io.h b/gl/unlocked-io.h index fdef624a..0cd9bbf3 100644 --- a/gl/unlocked-io.h +++ b/gl/unlocked-io.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Prefer faster, non-thread-safe stdio functions if available. | 1 | /* Prefer faster, non-thread-safe stdio functions if available. |
| 2 | 2 | ||
| 3 | Copyright (C) 2001-2004, 2009-2023 Free Software Foundation, Inc. | 3 | Copyright (C) 2001-2004, 2009-2024 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This program is free software: you can redistribute it and/or modify | 5 | This program is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
| @@ -31,6 +31,11 @@ | |||
| 31 | the *_unlocked functions directly. On hosts that lack those | 31 | the *_unlocked functions directly. On hosts that lack those |
| 32 | functions, invoke the non-thread-safe versions instead. */ | 32 | functions, invoke the non-thread-safe versions instead. */ |
| 33 | 33 | ||
| 34 | /* This file uses HAVE_DECL_*_UNLOCKED. */ | ||
| 35 | # if !_GL_CONFIG_H_INCLUDED | ||
| 36 | # error "Please include config.h first." | ||
| 37 | # endif | ||
| 38 | |||
| 34 | # include <stdio.h> | 39 | # include <stdio.h> |
| 35 | 40 | ||
| 36 | # if HAVE_DECL_CLEARERR_UNLOCKED || defined clearerr_unlocked | 41 | # if HAVE_DECL_CLEARERR_UNLOCKED || defined clearerr_unlocked |
| @@ -96,7 +101,7 @@ | |||
| 96 | # define fwrite_unlocked(w,x,y,z) fwrite (w,x,y,z) | 101 | # define fwrite_unlocked(w,x,y,z) fwrite (w,x,y,z) |
| 97 | # endif | 102 | # endif |
| 98 | 103 | ||
| 99 | # if HAVE_DECL_GETC_UNLOCKED || defined get_unlocked | 104 | # if HAVE_DECL_GETC_UNLOCKED || defined getc_unlocked |
| 100 | # undef getc | 105 | # undef getc |
| 101 | # define getc(x) getc_unlocked (x) | 106 | # define getc(x) getc_unlocked (x) |
| 102 | # else | 107 | # else |
