Re-added Mac OS X versioning macros and compiler/linker options.
This commit is contained in:
parent
ecdb7bc09d
commit
88a51068db
|
@ -4,6 +4,9 @@
|
||||||
#ifndef __GO_UI_OBJC_DARWIN_H__
|
#ifndef __GO_UI_OBJC_DARWIN_H__
|
||||||
#define __GO_UI_OBJC_DARWIN_H__
|
#define __GO_UI_OBJC_DARWIN_H__
|
||||||
|
|
||||||
|
#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_7
|
||||||
|
#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_7
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <objc/message.h>
|
#include <objc/message.h>
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
// #cgo CFLAGS: -DTODO
|
// #cgo CFLAGS: -mmacosx-version-min=10.7 -DMACOSX_DEPLOYMENT_TARGET=10.7
|
||||||
// #cgo LDFLAGS: -lobjc -framework Foundation -framework AppKit
|
// #cgo LDFLAGS: -mmacosx-version-min=10.7 -lobjc -framework Foundation -framework AppKit
|
||||||
// #include "objc_darwin.h"
|
// #include "objc_darwin.h"
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue