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, [=]{