music_opus.c
changeset 918 05c9e6169a89
parent 917 a94168f3fc7f
child 926 d6c9518fb5ee
     1.1 --- a/music_opus.c	Fri Oct 26 11:49:01 2018 -0700
     1.2 +++ b/music_opus.c	Fri Oct 26 11:56:10 2018 -0700
     1.3 @@ -27,7 +27,11 @@
     1.4  
     1.5  #include "music_opus.h"
     1.6  
     1.7 +#if defined(OPUS_HEADER)
     1.8 +#include OPUS_HEADER
     1.9 +#else
    1.10  #include <opus/opusfile.h>
    1.11 +#endif
    1.12  
    1.13  typedef struct {
    1.14      int loaded;
    1.15 @@ -65,7 +69,7 @@
    1.16          extern OggOpusFile *op_open_callbacks(void *,const OpusFileCallbacks *,const unsigned char *,size_t,int *) __attribute__((weak_import));
    1.17          if (op_open_callbacks == NULL) {
    1.18              /* Missing weakly linked framework */
    1.19 -            Mix_SetError("Missing Opus.framework");
    1.20 +            Mix_SetError("Missing OpusFile.framework");
    1.21              return -1;
    1.22          }
    1.23  #endif