From 4a3306b4799499a51d22fab066bbf5e8cc88d6a8 Mon Sep 17 00:00:00 2001 From: LAGonauta Date: Fri, 20 Nov 2020 08:04:47 -0300 Subject: [PATCH] Allow 32-bit linking Win32 apis are __stdcall --- libdino/src/service/util.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libdino/src/service/util.vala b/libdino/src/service/util.vala index 66cee1c4..c7af9243 100644 --- a/libdino/src/service/util.vala +++ b/libdino/src/service/util.vala @@ -4,13 +4,13 @@ namespace Dino { public class Util { #if _WIN32 - [CCode (cname = "ShellExecuteA")] + [CCode (cname = "ShellExecuteA", cheader_filename = "windows.h")] private static extern int ShellExecuteA(int* hwnd, string operation, string file, string parameters, string directory, int showCmd); - [CCode (cname = "CoInitialize")] + [CCode (cname = "CoInitialize", cheader_filename = "windows.h")] private static extern int CoInitialize(void* reserved); - [CCode (cname = "CoUninitialize")] + [CCode (cname = "CoUninitialize", cheader_filename = "windows.h")] private static extern void CoUninitialize(); private static int ShellExecute(string operation, string file) {