Mercurial > pidgin.yaz
comparison src/prefix.h @ 10262:7f487c725a90
[gaim-migrate @ 11406]
the autopackage guys were nice enough to quicly fix this for me.
basicly a function was getting #ifdef'd out if you compild with
--disable-binreloc, that shouldn't have been.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Thu, 25 Nov 2004 20:48:16 +0000 |
parents | 645eb9804040 |
children | ca559e2b1d0a |
comparison
equal
deleted
inserted
replaced
10261:d4e9ff2edc4e | 10262:7f487c725a90 |
---|---|
86 | 86 |
87 | 87 |
88 /* The following functions are used internally by BinReloc | 88 /* The following functions are used internally by BinReloc |
89 and shouldn't be used directly in applications. */ | 89 and shouldn't be used directly in applications. */ |
90 | 90 |
91 const char *br_thread_local_store (char *str); | |
92 char *br_locate (void *symbol); | 91 char *br_locate (void *symbol); |
93 char *br_locate_prefix (void *symbol); | 92 char *br_locate_prefix (void *symbol); |
94 char *br_prepend_prefix (void *symbol, char *path); | 93 char *br_prepend_prefix (void *symbol, char *path); |
95 | 94 |
95 #endif /* ENABLE_BINRELOC */ | |
96 | 96 |
97 #endif /* ENABLE_BINRELOC */ | 97 const char *br_thread_local_store (char *str); |
98 | 98 |
99 | 99 |
100 /* These macros and functions are not guarded by the ENABLE_BINRELOC | 100 /* These macros and functions are not guarded by the ENABLE_BINRELOC |
101 * macro because they are portable. You can use these functions. | 101 * macro because they are portable. You can use these functions. |
102 */ | 102 */ |
106 #define br_extract_prefix BR_NAMESPACE(br_extract_prefix) | 106 #define br_extract_prefix BR_NAMESPACE(br_extract_prefix) |
107 #define br_set_locate_fallback_func BR_NAMESPACE(br_set_locate_fallback_func) | 107 #define br_set_locate_fallback_func BR_NAMESPACE(br_set_locate_fallback_func) |
108 | 108 |
109 #ifndef BR_NO_MACROS | 109 #ifndef BR_NO_MACROS |
110 /* Convenience functions for concatenating paths */ | 110 /* Convenience functions for concatenating paths */ |
111 | |
112 /* Each time you call one, the previous result will be freed. So don't do this: | |
113 * | |
114 * some_function( BR_DATADIR("/one"), BR_DATADIR("/two") ) | |
115 * | |
116 * as the first parameter will now be bogus! | |
117 */ | |
118 | |
111 #define BR_SELFPATH(suffix) (br_thread_local_store (br_strcat (SELFPATH, suffix))) | 119 #define BR_SELFPATH(suffix) (br_thread_local_store (br_strcat (SELFPATH, suffix))) |
112 #define BR_PREFIX(suffix) (br_thread_local_store (br_strcat (PREFIX, suffix))) | 120 #define BR_PREFIX(suffix) (br_thread_local_store (br_strcat (PREFIX, suffix))) |
113 #define BR_PREFIXDIR(suffix) (br_thread_local_store (br_strcat (BR_PREFIX, suffix))) | 121 #define BR_PREFIXDIR(suffix) (br_thread_local_store (br_strcat (BR_PREFIX, suffix))) |
114 #define BR_BINDIR(suffix) (br_thread_local_store (br_strcat (BINDIR, suffix))) | 122 #define BR_BINDIR(suffix) (br_thread_local_store (br_strcat (BINDIR, suffix))) |
115 #define BR_SBINDIR(suffix) (br_thread_local_store (br_strcat (SBINDIR, suffix))) | 123 #define BR_SBINDIR(suffix) (br_thread_local_store (br_strcat (SBINDIR, suffix))) |