Skip to content

Commit 9f5511c

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

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

osxkeychain/cmd/main_darwin.go renamed to osxkeychain/cmd/main.go

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 (

osxkeychain/osxkeychain_darwin.c renamed to osxkeychain/osxkeychain.c

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>

osxkeychain/osxkeychain_darwin.go renamed to osxkeychain/osxkeychain.go

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"
File renamed without changes.

osxkeychain/osxkeychain_darwin_test.go renamed to osxkeychain/osxkeychain_test.go

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)