From: glenlow Date: Sat, 1 Mar 2008 12:35:02 +0000 (+0000) Subject: lefty now builds in MinGW: minor preprocessor changes, modern definition of WinMain... X-Git-Tag: LAST_LIBGRAPH~32^2~4638 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=916131e4887e7566f08ca8fba082c183b4624424;p=graphviz lefty now builds in MinGW: minor preprocessor changes, modern definition of WinMain, use windres to compile resources in MinGW/Cygwin --- diff --git a/cmd/dotty/mswin32/dotty.c b/cmd/dotty/mswin32/dotty.c index bdbb1420a..47a1207be 100644 --- a/cmd/dotty/mswin32/dotty.c +++ b/cmd/dotty/mswin32/dotty.c @@ -36,8 +36,8 @@ static char* lneato = ""; #endif -int PASCAL WinMain ( - HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nCmdShow +int APIENTRY WinMain ( + HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ) { STARTUPINFO si; PROCESS_INFORMATION pi;