Eric Pouech : wineconsole: Enable compilation with long types.

Alexandre Julliard julliard at winehq.org
Mon Feb 7 15:56:04 CST 2022


Module: wine
Branch: master
Commit: c4b0c89b78596e22c81ab240e90a532f613de34b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c4b0c89b78596e22c81ab240e90a532f613de34b

Author: Eric Pouech <eric.pouech at gmail.com>
Date:   Mon Feb  7 08:40:43 2022 +0100

wineconsole: Enable compilation with long types.

Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/wineconsole/Makefile.in   | 1 -
 programs/wineconsole/wineconsole.c | 4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/programs/wineconsole/Makefile.in b/programs/wineconsole/Makefile.in
index 882ee9a3b1d..b859ef8a27a 100644
--- a/programs/wineconsole/Makefile.in
+++ b/programs/wineconsole/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
 MODULE    = wineconsole.exe
 IMPORTS   = advapi32
 DELAYIMPORTS = comctl32 user32 gdi32
diff --git a/programs/wineconsole/wineconsole.c b/programs/wineconsole/wineconsole.c
index d398e6eb1a8..1924bf791e6 100644
--- a/programs/wineconsole/wineconsole.c
+++ b/programs/wineconsole/wineconsole.c
@@ -44,7 +44,7 @@ int WINAPI wWinMain( HINSTANCE inst, HINSTANCE prev, WCHAR *cmdline, INT show )
     FreeConsole(); /* make sure we're not connected to inherited console */
     if (!AllocConsole())
     {
-        ERR( "failed to allocate console: %u\n", GetLastError() );
+        ERR( "failed to allocate console: %lu\n", GetLastError() );
         return 1;
     }
 
@@ -63,7 +63,7 @@ int WINAPI wWinMain( HINSTANCE inst, HINSTANCE prev, WCHAR *cmdline, INT show )
         INPUT_RECORD ir;
         DWORD len;
         exit_code = GetLastError();
-        WARN( "CreateProcess failed: %u\n", exit_code );
+        WARN( "CreateProcess failed: %lu\n", exit_code );
         LoadStringW( GetModuleHandleW( NULL ), IDS_CMD_LAUNCH_FAILED, format, ARRAY_SIZE(format) );
         len = wcslen( format ) + wcslen( cmd );
         if ((buf = malloc( len * sizeof(WCHAR) )))




More information about the wine-cvs mailing list