Skip to content

Commit

Permalink
use __MINGW_PRINTF_FORMAT
Browse files Browse the repository at this point in the history
Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed May 13, 2023
1 parent 0ae4540 commit 04c1eeb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/first.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,9 @@
#define _POSIX
#define __USE_MINGW_ALARM 1
/* https://sourceforge.net/p/mingw-w64/wiki2/gnu%20printf/ */
#define __USE_MINGW_ANSI_STDIO 1
/*#include <stdio.h>*/
#include <stdio.h>
#undef __printf__
/*#define __printf__ __MINGW_PRINTF_FORMAT*/
#define __printf__ __gnu_printf__
#define __printf__ __MINGW_PRINTF_FORMAT
/* override pid_t before <sys/types.h> is included; modified from:
* /usr/x86_64-w64-mingw32/sys-root/mingw/include/sys/types.h */
#ifndef _PID_T_
Expand Down

0 comments on commit 04c1eeb

Please sign in to comment.