From df0d663b359280c26af2c3ff3d5f59d53a66ddb9 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Wed, 17 May 2017 07:49:03 +0800 Subject: [PATCH] Rebuild with updated MinGW32. --- Makefile | 2 +- mingw32.c | 2 +- wscreen.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 5690871..0022319 100644 --- a/Makefile +++ b/Makefile @@ -117,7 +117,7 @@ depend: ${SRC} @sed -n -e '1,/^# DO NOT DELETE THIS LINE/p' Makefile.bak > Makefile @echo >> Makefile @for i in ${SRC}; do\ - cc ${DEFINES} -MM $$i ; done >> Makefile + $(CC) ${DEFINES} -MM $$i ; done >> Makefile @echo '' >>Makefile @echo '# DEPENDENCIES MUST END AT END OF FILE' >>Makefile @echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >>Makefile diff --git a/mingw32.c b/mingw32.c index 4fb92e6..c827873 100644 --- a/mingw32.c +++ b/mingw32.c @@ -79,7 +79,7 @@ void ttopen( void) { void ttclose( void) { } -int ttputc( int c) { +int ttputc( unicode_t c) { char utf8[ 6] ; int bytes ; diff --git a/wscreen.c b/wscreen.c index 0e3a138..aa983fa 100644 --- a/wscreen.c +++ b/wscreen.c @@ -8,7 +8,7 @@ #include /* Standard error macro for reporting API errors */ -#define PERR(bSuccess, api){if(!(bSuccess)) printf("%s:Error %d from %s \ +#define PERR(bSuccess, api){if(!(bSuccess)) printf("%s:Error %ld from %s \ on line %d\n", __FILE__, GetLastError(), api, __LINE__);} static void cls( HANDLE hConsole )