Skip to content

Commit

Permalink
opus, windows: added an opusfile.h wrapper under MSVC/external/include
Browse files Browse the repository at this point in the history
and adjusted the headers under opus/ for it.  this avoids an additional
-Iinclude/opus directive.
  • Loading branch information
sezero committed Jun 16, 2018
1 parent 93764b0 commit 452b73c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions VisualC/external/include/opus/opus.h
Expand Up @@ -33,8 +33,8 @@
#ifndef OPUS_H
#define OPUS_H

#include "opus_types.h"
#include "opus_defines.h"
#include <opus/opus_types.h>
#include <opus/opus_defines.h>

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion VisualC/external/include/opus/opus_defines.h
Expand Up @@ -33,7 +33,7 @@
#ifndef OPUS_DEFINES_H
#define OPUS_DEFINES_H

#include "opus_types.h"
#include <opus/opus_types.h>

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion VisualC/external/include/opus/opus_multistream.h
Expand Up @@ -33,7 +33,7 @@
#ifndef OPUS_MULTISTREAM_H
#define OPUS_MULTISTREAM_H

#include "opus.h"
#include <opus/opus.h>

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion VisualC/external/include/opus/opusfile.h
Expand Up @@ -107,7 +107,7 @@ extern "C" {
# include <stdarg.h>
# include <stdio.h>
# include <ogg/ogg.h>
# include <opus_multistream.h>
# include <opus/opus_multistream.h>

/**@cond PRIVATE*/

Expand Down
3 changes: 3 additions & 0 deletions VisualC/external/include/opusfile.h
@@ -0,0 +1,3 @@
/* wrapper to avoid an additional -Iinclude/opus directive.
* headers under opus/ are edited accordingly for this */
#include <opus/opusfile.h>

0 comments on commit 452b73c

Please sign in to comment.