From 2c8d8e2335c178b5818a219bcf4df149293d549a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 14 Sep 2019 10:29:11 +0200 Subject: Wrap deprecated declarations in PUGL_DISABLE_DEPRECATED This allows projects that use strict warning flags to suppress warning noise. --- pugl/pugl.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pugl') diff --git a/pugl/pugl.h b/pugl/pugl.h index 5e816f0..9a93511 100644 --- a/pugl/pugl.h +++ b/pugl/pugl.h @@ -805,6 +805,8 @@ puglSetClipboard(PuglView* view, PUGL_API PuglStatus puglRequestAttention(PuglView* view); +#ifndef PUGL_DISABLE_DEPRECATED + /** @} @name Deprecated API @@ -1015,6 +1017,8 @@ puglWaitForEvent(PuglView* view); PUGL_API PUGL_DEPRECATED_BY("puglDispatchEvents") PuglStatus puglProcessEvents(PuglView* view); +#endif /* PUGL_DISABLE_DEPRECATED */ + /** @} @} -- cgit v1.2.1