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)
This commit is contained in:
Hraban Luyat 2017-02-28 00:56:11 +00:00
parent bac75aac1d
commit 6c08ee0d19
4 changed files with 4 additions and 4 deletions

View file

@ -11,7 +11,7 @@ import (
/*
#cgo pkg-config: opus
#include <opus/opus.h>
#include <opus.h>
*/
import "C"

View 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)

View file

@ -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

View file

@ -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;