]> Sergey Matveev's repositories - go-opus.git/commitdiff
Update import path to pkg-config style
authorHraban Luyat <hraban@0brg.net>
Tue, 28 Feb 2017 00:56:11 +0000 (00:56 +0000)
committerHraban Luyat <hraban@0brg.net>
Tue, 28 Feb 2017 00:56:50 +0000 (00:56 +0000)
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)

decoder.go
encoder.go
errors.go
opus.go

index 729d21291ed49facf93595f1ec3c40ff4cc2c4a4..6ca40b264dee1e6ef293089a4d331a7955993859 100644 (file)
@@ -11,7 +11,7 @@ import (
 
 /*
 #cgo pkg-config: opus
-#include <opus/opus.h>
+#include <opus.h>
 */
 import "C"
 
index 2c75788173de1acb30a041e2b9a90fa0ef300f6a..cd67484a0fe820bc4ec90d168ffd415f78dde97a 100644 (file)
@@ -11,7 +11,7 @@ import (
 
 /*
 #cgo pkg-config: opus
-#include <opus/opus.h>
+#include <opus.h>
 
 int
 bridge_encoder_set_dtx(OpusEncoder *st, opus_int32 use_dtx)
index 88ef026fe000558ebf0c6dfa54648d2dd94cafec..47e4020d467dd07c55145c0306405c9408e9914d 100644 (file)
--- a/errors.go
+++ b/errors.go
@@ -10,7 +10,7 @@ import (
 
 /*
 #cgo pkg-config: opus opusfile
-#include <opus/opus.h>
+#include <opus.h>
 #include <opusfile.h>
 
 // Access the preprocessor from CGO
diff --git a/opus.go b/opus.go
index 29b019e6451799947fe7e3da365ed2e0d7b3e37c..a7436e21befccaf5e536f8d6f7bbc5a041ca8875 100644 (file)
--- a/opus.go
+++ b/opus.go
@@ -7,7 +7,7 @@ package opus
 /*
 // Link opus using pkg-config.
 #cgo pkg-config: opus
-#include <opus/opus.h>
+#include <opus.h>
 
 // Access the preprocessor from CGO
 const int CONST_APPLICATION_VOIP = OPUS_APPLICATION_VOIP;