diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 15:27:12 (GMT) |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 15:27:12 (GMT) |
commit | 5be04ec2ceb1df77afbca4fcbf9e92a712612d6f (patch) | |
tree | 2b2e1c71dffae827c8e45cd4cccc375093d03486 /gl/unlocked-io.h | |
parent | 6d1d1dac32841d5ca6ee51bb09b30a6c604b17e2 (diff) | |
download | monitoring-plugins-5be04ec2ceb1df77afbca4fcbf9e92a712612d6f.tar.gz |
Sync with the latest Gnulib code (d4ec02b3cc)refs/pull/2037/head
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 fdef624..0cd9bbf 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 |