]> code.delx.au - pulseaudio/commitdiff
pulsecore: Don't conditionally inline pa_run_from_build_tree()
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Sun, 14 Apr 2013 05:02:26 +0000 (10:32 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Sun, 14 Apr 2013 05:20:15 +0000 (10:50 +0530)
There's no good reason to assume an in-tree build will be debug-only.
This breaks alsa-mixer-path-test on make distcheck, for example.

src/pulsecore/core-util.c
src/pulsecore/core-util.h

index 1f4fca1e72f542436873a7cb14acddf94f30d58c..657e50085c783556b26c08f4ead8c3523f438c9b 100644 (file)
@@ -3207,8 +3207,6 @@ void pa_reset_personality(void) {
 
 }
 
-#if defined(__linux__) && !defined(__OPTIMIZE__)
-
 pa_bool_t pa_run_from_build_tree(void) {
     char *rp;
     pa_bool_t b = FALSE;
@@ -3221,8 +3219,6 @@ pa_bool_t pa_run_from_build_tree(void) {
     return b;
 }
 
-#endif
-
 const char *pa_get_temp_dir(void) {
     const char *t;
 
index 9d59383cd2da8f8986e4a4d2de97f87975ebbc45..15e68092b2568e8eb15836ba49c8cad67e8199e9 100644 (file)
@@ -260,14 +260,7 @@ size_t pa_pipe_buf(int fd);
 
 void pa_reset_personality(void);
 
-/* We abuse __OPTIMIZE__ as a check whether we are a debug build
- * or not. If we are and are run from the build tree then we
- * override the search path to point to our build tree */
-#if defined(__linux__) && !defined(__OPTIMIZE__)
-pa_bool_t pa_run_from_build_tree(void);
-#else
-static inline pa_bool_t pa_run_from_build_tree(void) {return FALSE;}
-#endif
+pa_bool_t pa_run_from_build_tree(void) PA_GCC_CONST;
 
 const char *pa_get_temp_dir(void);