File tree 4 files changed +2
-16
lines changed
4 files changed +2
-16
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1
1
#import < Foundation/Foundation.h>
2
2
#import < AppKit/AppKit.h>
3
- #include " certificates .h"
3
+ #include " certificates_darwin .h"
4
4
5
5
// Used to return error strings (as NSString) as a C-string to the Go code.
6
6
const char *toErrorString (NSString *errString) {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ package certificates
24
24
#cgo LDFLAGS: -framework Foundation -framework Security -framework AppKit -ld_classic
25
25
26
26
#import <Foundation/Foundation.h>
27
- #include "certificates .h"
27
+ #include "certificates_darwin .h"
28
28
*/
29
29
import "C"
30
30
import (
Original file line number Diff line number Diff line change 17
17
18
18
package certificates
19
19
20
- /*
21
- // Importing "certificates.h" here even if it is not used avoids building errors on Ubuntu and Windows.
22
-
23
- // Explicitly tell the GCC compiler that the language is Objective-C.
24
- #cgo CFLAGS: -x objective-c
25
-
26
- // Pass the list of macOS frameworks needed by this piece of Objective-C code.
27
- // The "-ld_classic" is needed to avoid a wrong warning about duplicate libraries when building with XCode 15.
28
- #cgo LDFLAGS: -framework Foundation -framework Security -framework AppKit -ld_classic
29
-
30
- #import <Foundation/Foundation.h>
31
- #include "certificates.h"
32
- */
33
-
34
20
import (
35
21
"errors"
36
22
"time"
You can’t perform that action at this time.
0 commit comments