From: Mikko Rasa Date: Fri, 6 Jan 2017 11:08:27 +0000 (+0200) Subject: Some compilation fixes for Windows too X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=d675d665b336507a795afaf67d18030b304b793d;p=libs%2Fal.git Some compilation fixes for Windows too --- diff --git a/source/al.h b/source/al.h index 6310877..70ecc77 100644 --- a/source/al.h +++ b/source/al.h @@ -4,6 +4,9 @@ #ifdef __APPLE__ #include #else +#ifndef TARGET_OS_MAC +#define TARGET_OS_MAC 0 +#endif #include #endif diff --git a/source/oggdecoder.cpp b/source/oggdecoder.cpp index 5462b79..efea1f6 100644 --- a/source/oggdecoder.cpp +++ b/source/oggdecoder.cpp @@ -1,4 +1,7 @@ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-variable" #include +#pragma GCC diagnostic pop #include #include "oggdecoder.h"