diff options
author | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-04-23 04:43:59 +0000 |
---|---|---|
committer | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-04-23 04:43:59 +0000 |
commit | f40cc79fed36173f3588f26d7bec8ee7705dc153 (patch) | |
tree | 61d38d262d43ac77fc2ad94c9e7e850cd5607622 /examples/Naming | |
parent | 2afe8d4640d7b30bfe959c16212ea87df8e6ec7c (diff) | |
download | ATCD-f40cc79fed36173f3588f26d7bec8ee7705dc153.tar.gz |
ChangeLogTag:Sat Apr 22 20:53:11 2000 Darrell Brunsch <brunsch@uci.edu>
Diffstat (limited to 'examples/Naming')
-rw-r--r-- | examples/Naming/test_multiple_contexts.cpp | 6 | ||||
-rw-r--r-- | examples/Naming/test_non_existent.cpp | 4 | ||||
-rw-r--r-- | examples/Naming/test_writers.cpp | 5 |
3 files changed, 14 insertions, 1 deletions
diff --git a/examples/Naming/test_multiple_contexts.cpp b/examples/Naming/test_multiple_contexts.cpp index 307260c250b..584d98d5da9 100644 --- a/examples/Naming/test_multiple_contexts.cpp +++ b/examples/Naming/test_multiple_contexts.cpp @@ -6,6 +6,8 @@ ACE_RCSID(Naming, test_multiple_contexts, "$Id$") int main (int, char *[]) { +#if defined (ACE_HAS_WCHAR) + static u_long ACE_DEFAULT_BASE_ADDR_1 = (1 * 64 * 1024 * 1024); static u_long ACE_DEFAULT_BASE_ADDR_2 = (2 * 64 * 1024 * 1024); @@ -77,5 +79,9 @@ int main (int, char *[]) if (i != 0) return -1; +#else /* ACE_HAS_WCHAR */ + ACE_ERROR ((LM_INFO, ACE_TEXT ("Naming requires wchar_t support to run.\n"))); +#endif /* ACE_HAS_WCHAR */ + return 0; } diff --git a/examples/Naming/test_non_existent.cpp b/examples/Naming/test_non_existent.cpp index f8785ad0f81..79ec5670345 100644 --- a/examples/Naming/test_non_existent.cpp +++ b/examples/Naming/test_non_existent.cpp @@ -6,6 +6,7 @@ ACE_RCSID(Naming, test_non_existent, "$Id$") int main (int, char *[]) { +#if defined (ACE_HAS_WCHAR) int i; ACE_Naming_Context *ns_ptr; @@ -47,5 +48,8 @@ int main (int, char *[]) ACE_DEBUG ((LM_DEBUG, "(%P) bound with %d\n", i)); +#else /* ACE_HAS_WCHAR */ + ACE_ERROR ((LM_INFO, ACE_TEXT ("Naming requires wchar_t support to run.\n"))); +#endif /* ACE_HAS_WCHAR */ return 0; } diff --git a/examples/Naming/test_writers.cpp b/examples/Naming/test_writers.cpp index 460667815c8..f2677233f97 100644 --- a/examples/Naming/test_writers.cpp +++ b/examples/Naming/test_writers.cpp @@ -6,6 +6,7 @@ ACE_RCSID(Naming, test_writers, "$Id$") int main (int, char *[]) { +#if defined (ACE_HAS_WCHAR) int i; ACE_Naming_Context *ns_ptr; @@ -66,6 +67,8 @@ int main (int, char *[]) } } - +#else /* ACE_HAS_WCHAR */ + ACE_ERROR ((LM_INFO, ACE_TEXT ("Naming requires wchar_t support to run.\n"))); +#endif /* ACE_HAS_WCHAR */ return 0; } |