diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/mingw.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h index d5a675507..fd9630a58 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
| @@ -122,6 +122,17 @@ NOIMPL(sigfillset,int *mask UNUSED_PARAM); | |||
| 122 | int fdprintf(int fd, const char *format, ...); | 122 | int fdprintf(int fd, const char *format, ...); |
| 123 | 123 | ||
| 124 | /* | 124 | /* |
| 125 | * ANSI emulation wrappers | ||
| 126 | */ | ||
| 127 | |||
| 128 | int winansi_fputs(const char *str, FILE *stream); | ||
| 129 | int winansi_printf(const char *format, ...) __attribute__((format (printf, 1, 2))); | ||
| 130 | int winansi_fprintf(FILE *stream, const char *format, ...) __attribute__((format (printf, 2, 3))); | ||
| 131 | #define fputs winansi_fputs | ||
| 132 | #define printf(...) winansi_printf(__VA_ARGS__) | ||
| 133 | #define fprintf(...) winansi_fprintf(__VA_ARGS__) | ||
| 134 | |||
| 135 | /* | ||
| 125 | * stdlib.h | 136 | * stdlib.h |
| 126 | */ | 137 | */ |
| 127 | #define WIFEXITED(x) ((unsigned)(x) < 259) /* STILL_ACTIVE */ | 138 | #define WIFEXITED(x) ((unsigned)(x) < 259) /* STILL_ACTIVE */ |
