diff options
Diffstat (limited to 'lib/binary-io.h')
| -rw-r--r-- | lib/binary-io.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/binary-io.h b/lib/binary-io.h index 6f4db253354..855d6f819f0 100644 --- a/lib/binary-io.h +++ b/lib/binary-io.h | |||
| @@ -17,6 +17,11 @@ | |||
| 17 | #ifndef _BINARY_H | 17 | #ifndef _BINARY_H |
| 18 | #define _BINARY_H | 18 | #define _BINARY_H |
| 19 | 19 | ||
| 20 | /* This file uses _GL_INLINE_HEADER_BEGIN, _GL_INLINE, _GL_UNUSED. */ | ||
| 21 | #if !_GL_CONFIG_H_INCLUDED | ||
| 22 | #error "Please include config.h first." | ||
| 23 | #endif | ||
| 24 | |||
| 20 | /* For systems that distinguish between text and binary I/O. | 25 | /* For systems that distinguish between text and binary I/O. |
| 21 | O_BINARY is guaranteed by the gnulib <fcntl.h>. */ | 26 | O_BINARY is guaranteed by the gnulib <fcntl.h>. */ |
| 22 | #include <fcntl.h> | 27 | #include <fcntl.h> |
| @@ -25,9 +30,6 @@ | |||
| 25 | so we include it here first. */ | 30 | so we include it here first. */ |
| 26 | #include <stdio.h> | 31 | #include <stdio.h> |
| 27 | 32 | ||
| 28 | #ifndef _GL_INLINE_HEADER_BEGIN | ||
| 29 | #error "Please include config.h first." | ||
| 30 | #endif | ||
| 31 | _GL_INLINE_HEADER_BEGIN | 33 | _GL_INLINE_HEADER_BEGIN |
| 32 | #ifndef BINARY_IO_INLINE | 34 | #ifndef BINARY_IO_INLINE |
| 33 | # define BINARY_IO_INLINE _GL_INLINE | 35 | # define BINARY_IO_INLINE _GL_INLINE |