Skip to content

Commit e138b74

Browse files
committed
osxkeychain: use go build constraint
Signed-off-by: CrazyMax <[email protected]>
1 parent a652f8e commit e138b74

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build darwin && cgo
2+
13
package main
24

35
import (
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "osxkeychain_darwin.h"
1+
#include "osxkeychain.h"
22
#include <CoreFoundation/CoreFoundation.h>
33
#include <Foundation/NSValue.h>
44
#include <stdio.h>
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
//go:build darwin && cgo
2+
13
package osxkeychain
24

35
/*
46
#cgo CFLAGS: -x objective-c
57
#cgo LDFLAGS: -framework Security -framework Foundation
68
7-
#include "osxkeychain_darwin.h"
9+
#include "osxkeychain.h"
810
#include <stdlib.h>
911
*/
1012
import "C"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build darwin && cgo
2+
13
package osxkeychain
24

35
import (

0 commit comments

Comments
 (0)