mirror of
https://github.com/mappu/miqt.git
synced 2025-02-23 04:50:24 +00:00
mainthread: replace _cgo_export import with handwritten prototype
This commit is contained in:
parent
3a63a129ae
commit
5979cb49d5
@ -1,10 +1,11 @@
|
||||
#include <QMetaObject>
|
||||
#include <QCoreApplication>
|
||||
|
||||
#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, [=]{
|
||||
|
Loading…
x
Reference in New Issue
Block a user