Move compile-time checks around pa_run_from_build_tree to core-util

To make the code cleaner and have the checks all in one place.
This commit is contained in:
Maarten Bosmans 2011-03-22 16:02:24 +01:00 committed by Colin Guthrie
parent 72323bc6bb
commit 93348331bb
4 changed files with 10 additions and 21 deletions

View file

@ -254,8 +254,13 @@ 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
const char *pa_get_temp_dir(void);