Skip to content

Commit

Permalink
Supress OpenAL warnings in macOS 11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mogemimi committed Sep 17, 2024
1 parent a8a9be3 commit 55b1a5d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pomdog/audio/openal/prerequisites_openal.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,22 @@

#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 <OpenAL/al.h>
#include <OpenAL/alc.h>
#elif defined(POMDOG_PLATFORM_LINUX) || defined(POMDOG_PLATFORM_EMSCRIPTEN)
#include <AL/al.h>
#include <AL/alc.h>
#endif
POMDOG_SUPPRESS_WARNINGS_GENERATED_BY_STD_HEADERS_END

0 comments on commit 55b1a5d

Please sign in to comment.