Codebase list libfreefare / ebab43d
For Windows MinGW address the "ISO C99 requires rest arguments to be used" error Alex Lian 11 years ago
1 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2929 # include <winerror.h>
3030 # include "win32/err.h"
3131 # if defined (__MINGW32__)
32 # define snprintf(S, n, F, ...) sprintf(S, F, __VA_ARGS__)
32 /*
33 * Cheating here on the snprintf to incorporate the format argument
34 * into the VA_ARGS. Else we get MinGW errors regarding number of arguments
35 * if doing a fixed string with no arguments.
36 */
37 # define snprintf(S, n, ...) sprintf(S, __VA_ARGS__)
3338 # define pipe(fds) _pipe(fds, 5000, _O_BINARY)
3439 # define ETIMEDOUT WSAETIMEDOUT
3540 # define ENOTSUP WSAEOPNOTSUPP