summaryrefslogtreecommitdiff
path: root/src/SFML/Window/OSX/WindowImplDelegateProtocol.h
diff options
context:
space:
mode:
authorJames Cowgill <jcowgill@debian.org>2023-11-28 19:13:53 +0000
committerJames Cowgill <jcowgill@debian.org>2023-11-28 19:13:53 +0000
commit75083e9fd5d6157541c58ff950f3aa0bb23b2acd (patch)
treec7784f418629df513b311c3936b456c9d251d72b /src/SFML/Window/OSX/WindowImplDelegateProtocol.h
parent08bb1c372efcc9e2054e64b80959f025c8f43744 (diff)
New upstream version 2.6.1+dfsg
Diffstat (limited to 'src/SFML/Window/OSX/WindowImplDelegateProtocol.h')
-rw-r--r--src/SFML/Window/OSX/WindowImplDelegateProtocol.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/SFML/Window/OSX/WindowImplDelegateProtocol.h b/src/SFML/Window/OSX/WindowImplDelegateProtocol.h
index d6cfa90..dd9cc28 100644
--- a/src/SFML/Window/OSX/WindowImplDelegateProtocol.h
+++ b/src/SFML/Window/OSX/WindowImplDelegateProtocol.h
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
-// Copyright (C) 2007-2018 Marco Antognini (antognini.marco@gmail.com),
+// Copyright (C) 2007-2023 Marco Antognini (antognini.marco@gmail.com),
// Laurent Gomila (laurent@sfml-dev.org)
//
// This software is provided 'as-is', without any express or implied warranty.
@@ -31,6 +31,16 @@
#import <AppKit/AppKit.h>
+#if defined(__APPLE__)
+ #if defined(__clang__)
+ #pragma clang diagnostic push
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
+ #elif defined(__GNUC__)
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+ #endif
+#endif
+
namespace sf {
namespace priv {
class WindowImplCocoa;
@@ -232,3 +242,11 @@ namespace sf {
-(void)applyContext:(NSOpenGLContext*)context;
@end
+
+#if defined(__APPLE__)
+ #if defined(__clang__)
+ #pragma clang diagnostic pop
+ #elif defined(__GNUC__)
+ #pragma GCC diagnostic pop
+ #endif
+#endif