]> granicus.if.org Git - graphviz/commitdiff
lneato: Windows: replace obsolete PASCAL declaration with WINAPI
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 15 Jan 2022 16:35:11 +0000 (17:35 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 17 Jan 2022 16:37:35 +0000 (17:37 +0100)
See
https://docs.microsoft.com/en-us/cpp/cpp/obsolete-calling-conventions?view=msvc-170.

cmd/lneato/mswin32/lneato.c

index 512010abbdb208e1d72db469fc86446fdac1ba0d..b9226ce8ae726662639e9cd3f79ec67ab1a9bbc4 100644 (file)
@@ -24,7 +24,7 @@ static char *shellpath;
 static char *buildpath (char *);
 static void panic (char *, int, char *, char *, ...);
 
-int PASCAL WinMain (HANDLE hInstance, HANDLE hPrevInstance,
+int WINAPI WinMain (HANDLE hInstance, HANDLE hPrevInstance,
         LPSTR lpCmdLine, int nCmdShow) {
     HANDLE handle;
     char cmd[256];