From 5979cb49d5f03b1fbd4c2dd0e84e61297f86a58a Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 11 Jan 2025 15:49:45 +1300 Subject: [PATCH] mainthread: replace _cgo_export import with handwritten prototype --- qt6/mainthread/mainthread.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/qt6/mainthread/mainthread.cpp b/qt6/mainthread/mainthread.cpp index a87d2b6b..b5e52510 100644 --- a/qt6/mainthread/mainthread.cpp +++ b/qt6/mainthread/mainthread.cpp @@ -1,10 +1,11 @@ #include #include -#ifndef _Bool -#define _Bool bool -#endif -#include "_cgo_export.h" +#include "mainthread.h" + +extern "C" { + void mainthread_exec_handle(intptr_t); +} void mainthread_exec(intptr_t cb) { QMetaObject::invokeMethod(qApp, [=]{