diff options
author | eutarass | 2010-07-16 15:51:05 +0000 |
---|---|---|
committer | eutarass | 2010-07-16 15:51:05 +0000 |
commit | b7c3299f6a2dd8d84d1989f50bbe94e25eff3450 (patch) | |
tree | fce901918303beced311bb9140d973b068e5a510 /main | |
parent | 6158a1738f1764bba0d70dbc7442bfae64b586bf (diff) | |
download | org.eclipse.tcf.agent-b7c3299f6a2dd8d84d1989f50bbe94e25eff3450.tar.gz org.eclipse.tcf.agent-b7c3299f6a2dd8d84d1989f50bbe94e25eff3450.tar.xz org.eclipse.tcf.agent-b7c3299f6a2dd8d84d1989f50bbe94e25eff3450.zip |
TCF Agent:
1. added extern "C" to agent self-test code to avoid mangling of test symbol names
2. removed unneeded extern "C" in regset.h
Diffstat (limited to 'main')
-rw-r--r-- | main/test.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/test.c b/main/test.c index 0242b650..931ac11a 100644 --- a/main/test.c +++ b/main/test.c @@ -34,6 +34,10 @@ # include <system/Windows/context-win32.h> #endif +#ifdef __cplusplus +extern "C" { +#endif + typedef enum test_enum { enum_val1 = 1, enum_val2 = 2, @@ -91,6 +95,10 @@ void tcf_test_func0(test_enum e) { static char array[0x1000]; char * tcf_test_array = array; +#ifdef __cplusplus +} +#endif + static void * test_sub(void * x) { volatile int * test_done = (int *)x; while (!*test_done) { |