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:
parent
bac75aac1d
commit
6c08ee0d19
|
@ -11,7 +11,7 @@ import (
|
|||
|
||||
/*
|
||||
#cgo pkg-config: opus
|
||||
#include <opus/opus.h>
|
||||
#include <opus.h>
|
||||
*/
|
||||
import "C"
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue