diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-02-10 15:43:59 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-02-10 15:43:59 -0800 |
commit | c27f813900a3c114562efbb8df1065e94766fc48 (patch) | |
tree | d95919283707dcab61009e27007374a745c9541e /dynlink.h | |
parent | 0852ad57fa372f9b2854e4df685eaba8d8ef6790 (diff) | |
download | external_qemu-c27f813900a3c114562efbb8df1065e94766fc48.zip external_qemu-c27f813900a3c114562efbb8df1065e94766fc48.tar.gz external_qemu-c27f813900a3c114562efbb8df1065e94766fc48.tar.bz2 |
auto import from //branches/cupcake/...@130745
Diffstat (limited to 'dynlink.h')
-rw-r--r-- | dynlink.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -65,6 +65,9 @@ #define DYNLINK_FUNC(ret,name,sig) \ static ret (*_dynlink_##name) sig ; +#define DYNLINK_STR(name) DYNLINK_STR_(name) +#define DYNLINK_STR_(name) #name + DYNLINK_FUNCTIONS #undef DYNLINK_FUNC @@ -81,7 +84,7 @@ DYNLINK_FUNCTIONS_INIT(void* library) { #define DYNLINK_FUNC(ret,name,sig) \ do { \ - _dynlink_##name = dlsym( library, STRINGIFY(name) ); \ + _dynlink_##name = dlsym( library, DYNLINK_STR(name) ); \ if (_dynlink_##name == NULL) goto Fail; \ } while (0); |