We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
1 parent 34fae24 commit 8854680Copy full SHA for 8854680
certificates/install_default.go
@@ -17,6 +17,20 @@
17
18
package certificates
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
import (
35
"errors"
36
"time"
0 commit comments