Skip to content

Commit

Permalink
Fix a path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
est31 committed Jul 10, 2017
1 parent 585da53 commit 7dd5c6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions werk/build.rs
Expand Up @@ -18,7 +18,7 @@ use gcc::Config;
macro_rules! files_fn {
($name:ident; $($($pathseg:ident)/ *.c),*) => {
fn $name(cfg :&mut Config) {
cfg $(.file(concat!("libopus/",
cfg $(.file(concat!("../libopus/",
$("/", stringify!($pathseg)),*,
".c"
)))*;
Expand Down Expand Up @@ -177,11 +177,11 @@ files_fn! { silk_files_float;
fn compile_opus() {
let mut cfg = gcc::Config::new();
cfg
.include("libopus/include")
.include("libopus/celt")
.include("libopus/silk")
.include("libopus/silk/fixed")
.include("libopus/silk/float")
.include("../libopus/include")
.include("../libopus/celt")
.include("../libopus/silk")
.include("../libopus/silk/fixed")
.include("../libopus/silk/float")
// Note in configure.ac there are a bunch of such variables defined,
// each with AC_DEFINE.
// But these two are the required ones
Expand Down
2 changes: 1 addition & 1 deletion werk/src/ffi_wrapper.h
Expand Up @@ -7,4 +7,4 @@
// Please see the COPYING file attached to
// this source distribution for details.

#include "../libopus/include/opus.h"
#include "../../libopus/include/opus.h"

0 comments on commit 7dd5c6f

Please sign in to comment.