Skip to content

Commit

Permalink
[host][darwin][cgo] Fix shirou#832 work around once-again broken go m…
Browse files Browse the repository at this point in the history
…odules not including C files

Supersedes shirou#885 by @afontaine
  • Loading branch information
Lomanic committed May 31, 2020
1 parent 663af78 commit 42c6875
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions host/host_darwin_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
package host

// #cgo LDFLAGS: -framework IOKit
// #include <stdio.h>
// #include <string.h>
// #include "include/smc.c"
// #include "smc_darwin.h"
import "C"
import "context"

Expand Down
4 changes: 3 additions & 1 deletion host/include/smc.c → host/smc_darwin.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "smc.h"
#include <stdio.h>
#include <string.h>
#include "smc_darwin.h"

#define IOSERVICE_SMC "AppleSMC"
#define IOSERVICE_MODEL "IOPlatformExpertDevice"
Expand Down
File renamed without changes.

0 comments on commit 42c6875

Please sign in to comment.