]> code.delx.au - pulseaudio/blobdiff - src/pulse/cdecl.h
merge 'lennart' branch back into trunk.
[pulseaudio] / src / pulse / cdecl.h
index 09b9b84a57cf61d5ec5f417d9a2691f9d5ea7465..e1f23d25e798861d08448cbac2e0f0e1d03d1c5c 100644 (file)
@@ -6,6 +6,8 @@
 /***
   This file is part of PulseAudio.
 
+  Copyright 2004-2006 Lennart Poettering
+
   PulseAudio is free software; you can redistribute it and/or modify
   it under the terms of the GNU Lesser General Public License as published
   by the Free Software Foundation; either version 2 of the License,
 
 #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