From 4ac6b5b4d3d1a18a341018df3054f617bb6b89d4 Mon Sep 17 00:00:00 2001 From: shirou Date: Sat, 27 Jan 2018 00:58:16 +0900 Subject: [PATCH] Revert "Merge pull request #470 from improbable-io/bug-darwin-build-2" This reverts commit bb09b4e7d97d450a7836ae174cf812bbdbfe5e9d, reversing changes made to 6a368fb7cd1221fa6ea90facc9447c9a2234c255. --- host/host_cgo.go | 5 ----- host/host_darwin_cgo.go | 2 +- host/{ => include}/smc.c | 0 host/{ => include}/smc.h | 0 4 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 host/host_cgo.go rename host/{ => include}/smc.c (100%) rename host/{ => include}/smc.h (100%) diff --git a/host/host_cgo.go b/host/host_cgo.go deleted file mode 100644 index 50a063e..0000000 --- a/host/host_cgo.go +++ /dev/null @@ -1,5 +0,0 @@ -// +build cgo - -package host - -import "C" diff --git a/host/host_darwin_cgo.go b/host/host_darwin_cgo.go index 3151888..f0a4370 100644 --- a/host/host_darwin_cgo.go +++ b/host/host_darwin_cgo.go @@ -4,7 +4,7 @@ package host // #cgo LDFLAGS: -framework IOKit -// #include "smc.h" +// #include "include/smc.c" import "C" import "context" diff --git a/host/smc.c b/host/include/smc.c similarity index 100% rename from host/smc.c rename to host/include/smc.c diff --git a/host/smc.h b/host/include/smc.h similarity index 100% rename from host/smc.h rename to host/include/smc.h