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