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 )