summaryrefslogtreecommitdiff
path: root/src/pulse/cdecl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulse/cdecl.h')
-rw-r--r--src/pulse/cdecl.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/pulse/cdecl.h b/src/pulse/cdecl.h
index 922ad276..e1f23d25 100644
--- a/src/pulse/cdecl.h
+++ b/src/pulse/cdecl.h
@@ -41,4 +41,22 @@
#endif
+#ifndef PA_GCC_PURE
+#ifdef __GNUCC__
+#define PA_GCC_PURE __attribute__ ((pure))
+#else
+/** This function's return value depends only the arguments list and global state **/
+#define PA_GCC_PURE
+#endif
+#endif
+
+#ifndef PA_GCC_CONST
+#ifdef __GNUCC__
+#define PA_GCC_CONST __attribute__ ((pure))
+#else
+/** This function's return value depends only the arguments list (stricter version of PA_GCC_CONST) **/
+#define PA_GCC_CONST
+#endif
+#endif
+
#endif