Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add include path fix for M1 Macs #38

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: go
go:
- 1.7.x
- 1.8.x
- 1.9.x
- 1.16.x
- 1.17.x
- 1.18.x
- tip
addons:
apt:
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/rakyll/magicmime

go 1.16
6 changes: 3 additions & 3 deletions magicmime.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// +build linux darwin freebsd
//go:build linux || darwin || freebsd

// Package magicmime detects mimetypes using libmagic.
// This package requires libmagic, install it by the following
Expand All @@ -22,8 +22,8 @@
// - Mac OS X: brew install libmagic
package magicmime

// #cgo CFLAGS: -I/usr/local/include
// #cgo LDFLAGS: -lmagic -L/usr/local/lib
// #cgo pkg-config: libmagic
// #cgo CFLAGS: -I/usr/local/include -I/opt/homebrew/opt/libmagic/include
// #include <stdlib.h>
// #include <magic.h>
import "C"
Expand Down