aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-09-14 10:29:11 +0200
committerDavid Robillard <d@drobilla.net>2019-09-14 11:19:55 +0200
commit2c8d8e2335c178b5818a219bcf4df149293d549a (patch)
treead152b4efd62287a3dfb1d82d37045a7da152dc8
parentc1a4ccae6a53c5d92807bba8a8e6cc3048c1449b (diff)
downloadpugl-2c8d8e2335c178b5818a219bcf4df149293d549a.tar.gz
pugl-2c8d8e2335c178b5818a219bcf4df149293d549a.tar.bz2
pugl-2c8d8e2335c178b5818a219bcf4df149293d549a.zip
Wrap deprecated declarations in PUGL_DISABLE_DEPRECATED
This allows projects that use strict warning flags to suppress warning noise.
-rw-r--r--pugl/pugl.h4
1 files changed, 4 insertions, 0 deletions
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 */
+
/**
@}
@}