forked from joejulian/gio
5326ca5fbe
The Nix version of the macOS toolchain has difficulties compiling Objective-C modules; disable modules instead of figuring out why. It also doesn't include any frameworks automatically; add them explicitly. While here, move suppression of OpenGL deprecation to a GL-specific file. Signed-off-by: Elias Naur <mail@eliasnaur.com>
13 lines
251 B
Objective-C
13 lines
251 B
Objective-C
// SPDX-License-Identifier: Unlicense OR MIT
|
|
|
|
#import <Dispatch/Dispatch.h>
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#include "_cgo_export.h"
|
|
|
|
void gio_wakeupMainThread(void) {
|
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
gio_dispatchMainFuncs();
|
|
});
|
|
}
|