From 55b1a5d39acdcbf732088c920f110f7d6aac810e Mon Sep 17 00:00:00 2001 From: mogemimi Date: Wed, 18 Sep 2024 00:59:00 +0900 Subject: [PATCH] Supress OpenAL warnings in macOS 11.0 --- pomdog/audio/openal/prerequisites_openal.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pomdog/audio/openal/prerequisites_openal.h b/pomdog/audio/openal/prerequisites_openal.h index 2534701dd..154ed84dd 100644 --- a/pomdog/audio/openal/prerequisites_openal.h +++ b/pomdog/audio/openal/prerequisites_openal.h @@ -2,8 +2,17 @@ #pragma once +#include "pomdog/basic/conditional_compilation.h" #include "pomdog/basic/platform.h" +#if defined(POMDOG_PLATFORM_MACOSX) +// NOTE: For silencing OpenAL warnings on macOS >= 10.15. +#ifndef OPENAL_DEPRECATED +#define OPENAL_DEPRECATED +#endif +#endif + +POMDOG_SUPPRESS_WARNINGS_GENERATED_BY_STD_HEADERS_BEGIN #if defined(POMDOG_PLATFORM_MACOSX) || defined(POMDOG_PLATFORM_APPLE_IOS) #include #include @@ -11,3 +20,4 @@ #include #include #endif +POMDOG_SUPPRESS_WARNINGS_GENERATED_BY_STD_HEADERS_END