aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysstdio.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysstdio.h')
-rw-r--r--src/sysstdio.h42
1 files changed, 1 insertions, 41 deletions
diff --git a/src/sysstdio.h b/src/sysstdio.h
index a2364c4e1fb..68ae043fe33 100644
--- a/src/sysstdio.h
+++ b/src/sysstdio.h
@@ -22,6 +22,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
22 22
23#include <fcntl.h> 23#include <fcntl.h>
24#include <stdio.h> 24#include <stdio.h>
25#include "unlocked-io.h"
25 26
26extern FILE *emacs_fopen (char const *, char const *); 27extern FILE *emacs_fopen (char const *, char const *);
27extern void close_output_streams (void); 28extern void close_output_streams (void);
@@ -34,45 +35,4 @@ extern void close_output_streams (void);
34# define FOPEN_TEXT "" 35# define FOPEN_TEXT ""
35#endif 36#endif
36 37
37/* These are compatible with unlocked-io.h, if both files are included. */
38#if !HAVE_DECL_CLEARERR_UNLOCKED
39# define clearerr_unlocked(x) clearerr (x)
40#endif
41#if !HAVE_DECL_FEOF_UNLOCKED
42# define feof_unlocked(x) feof (x)
43#endif
44#if !HAVE_DECL_FERROR_UNLOCKED
45# define ferror_unlocked(x) ferror (x)
46#endif
47#if !HAVE_DECL_FFLUSH_UNLOCKED
48# define fflush_unlocked(x) fflush (x)
49#endif
50#if !HAVE_DECL_FGETS_UNLOCKED
51# define fgets_unlocked(x,y,z) fgets (x,y,z)
52#endif
53#if !HAVE_DECL_FPUTC_UNLOCKED
54# define fputc_unlocked(x,y) fputc (x,y)
55#endif
56#if !HAVE_DECL_FPUTS_UNLOCKED
57# define fputs_unlocked(x,y) fputs (x,y)
58#endif
59#if !HAVE_DECL_FREAD_UNLOCKED
60# define fread_unlocked(w,x,y,z) fread (w,x,y,z)
61#endif
62#if !HAVE_DECL_FWRITE_UNLOCKED
63# define fwrite_unlocked(w,x,y,z) fwrite (w,x,y,z)
64#endif
65#if !HAVE_DECL_GETC_UNLOCKED
66# define getc_unlocked(x) getc (x)
67#endif
68#if !HAVE_DECL_GETCHAR_UNLOCKED
69# define getchar_unlocked() getchar ()
70#endif
71#if !HAVE_DECL_PUTC_UNLOCKED
72# define putc_unlocked(x,y) putc (x,y)
73#endif
74#if !HAVE_DECL_PUTCHAR_UNLOCKED
75# define putchar_unlocked(x) putchar (x)
76#endif
77
78#endif /* EMACS_SYSSTDIO_H */ 38#endif /* EMACS_SYSSTDIO_H */