]> code.delx.au - pulseaudio/blobdiff - src/pulse/cdecl.h
merge 'lennart' branch back into trunk.
[pulseaudio] / src / pulse / cdecl.h
index 922ad2765b3a223f4e08c496cbb5b5dce779e200..e1f23d25e798861d08448cbac2e0f0e1d03d1c5c 100644 (file)
 
 #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