Re-added Mac OS X versioning macros and compiler/linker options.

This commit is contained in:
Pietro Gagliardi 2014-07-20 21:22:10 -04:00
parent ecdb7bc09d
commit 88a51068db
2 changed files with 5 additions and 2 deletions

View File

@ -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>

View File

@ -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"