From: Hraban Luyat Date: Tue, 28 Feb 2017 00:56:11 +0000 (+0000) Subject: Update import path to pkg-config style X-Git-Tag: v2.0.0~29^2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=6c08ee0d19cf82b15b9e365384685fa4a714779b;p=go-opus.git Update import path to pkg-config style pkg-config --cflags always puts you in the opus/ directory where opus.h directly lives. No need to prefix with opus/. That just happened to work because it was symlinked into /usr/include/opus, but we don't need to rely on that now that we're using pkg-config. Based on Tobias Wellnitz's comment (hraban/opus#12) --- diff --git a/decoder.go b/decoder.go index 729d212..6ca40b2 100644 --- a/decoder.go +++ b/decoder.go @@ -11,7 +11,7 @@ import ( /* #cgo pkg-config: opus -#include +#include */ import "C" diff --git a/encoder.go b/encoder.go index 2c75788..cd67484 100644 --- a/encoder.go +++ b/encoder.go @@ -11,7 +11,7 @@ import ( /* #cgo pkg-config: opus -#include +#include int bridge_encoder_set_dtx(OpusEncoder *st, opus_int32 use_dtx) diff --git a/errors.go b/errors.go index 88ef026..47e4020 100644 --- a/errors.go +++ b/errors.go @@ -10,7 +10,7 @@ import ( /* #cgo pkg-config: opus opusfile -#include +#include #include // Access the preprocessor from CGO diff --git a/opus.go b/opus.go index 29b019e..a7436e2 100644 --- a/opus.go +++ b/opus.go @@ -7,7 +7,7 @@ package opus /* // Link opus using pkg-config. #cgo pkg-config: opus -#include +#include // Access the preprocessor from CGO const int CONST_APPLICATION_VOIP = OPUS_APPLICATION_VOIP;