summaryrefslogtreecommitdiff
path: root/tests/DLL_Test.cpp
diff options
context:
space:
mode:
authorkirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-30 21:29:29 +0000
committerkirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-30 21:29:29 +0000
commitde043e93a0f57306b808e752286e62c1f7e9e7f6 (patch)
tree17b0fd6a15a752460d023b773402083e9f6ce4ce /tests/DLL_Test.cpp
parent4bfd40a36e6373e6f79f63b61e9618fa8a1a2307 (diff)
downloadATCD-de043e93a0f57306b808e752286e62c1f7e9e7f6.tar.gz
Removed static from cdecl_decoration function
Diffstat (limited to 'tests/DLL_Test.cpp')
-rw-r--r--tests/DLL_Test.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/DLL_Test.cpp b/tests/DLL_Test.cpp
index 56efc8bdcd9..a81a513a9ac 100644
--- a/tests/DLL_Test.cpp
+++ b/tests/DLL_Test.cpp
@@ -53,7 +53,7 @@ USELIB("..\ace\aced.lib");
#endif /*ACE_WIN32*/
-static char const *
+char const *
cdecl_decoration(char const * func_name)
{
#if defined(__BORLANDC__)
@@ -106,8 +106,9 @@ main (int argc, char *argv[])
// function pointer. Doesnt allow:TC f = (TC) dll.symbol ("get_hello");
void * foo;
- foo = dll.symbol (cdecl_decoration("get_hello"));
-
+ char const *cdecl_str = cdecl_decoration("get_hello");
+ foo = dll.symbol (cdecl_str);
+
// Cast the void* to long first.
long tmp = ACE_reinterpret_cast (long, foo);
TC f = ACE_reinterpret_cast (Hello * (*)(void), tmp);