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__
|
||||
#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 <stdint.h>
|
||||
#include <objc/message.h>
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"unsafe"
|
||||
)
|
||||
|
||||
// #cgo CFLAGS: -DTODO
|
||||
// #cgo LDFLAGS: -lobjc -framework Foundation -framework AppKit
|
||||
// #cgo CFLAGS: -mmacosx-version-min=10.7 -DMACOSX_DEPLOYMENT_TARGET=10.7
|
||||
// #cgo LDFLAGS: -mmacosx-version-min=10.7 -lobjc -framework Foundation -framework AppKit
|
||||
// #include "objc_darwin.h"
|
||||
import "C"
|
||||
|
||||
|
|
Loading…
Reference in New Issue