Skip to content

Commit fd555e8

Browse files
committed
osxkeychain: use go build constraint
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
1 parent a652f8e commit fd555e8

5 files changed

Lines changed: 11 additions & 2 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//go:build darwin && cgo
2+
// +build darwin,cgo
3+
14
package main
25

36
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
//go:build darwin && cgo
2+
// +build darwin,cgo
3+
14
package osxkeychain
25

36
/*
47
#cgo CFLAGS: -x objective-c
58
#cgo LDFLAGS: -framework Security -framework Foundation
69
7-
#include "osxkeychain_darwin.h"
10+
#include "osxkeychain.h"
811
#include <stdlib.h>
912
*/
1013
import "C"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//go:build darwin && cgo
2+
// +build darwin,cgo
3+
14
package osxkeychain
25

36
import (

0 commit comments

Comments
 (0)