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 <QMetaObject>
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
|
||||||
#ifndef _Bool
|
#include "mainthread.h"
|
||||||
#define _Bool bool
|
|
||||||
#endif
|
extern "C" {
|
||||||
#include "_cgo_export.h"
|
void mainthread_exec_handle(intptr_t);
|
||||||
|
}
|
||||||
|
|
||||||
void mainthread_exec(intptr_t cb) {
|
void mainthread_exec(intptr_t cb) {
|
||||||
QMetaObject::invokeMethod(qApp, [=]{
|
QMetaObject::invokeMethod(qApp, [=]{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user