summaryrefslogtreecommitdiff
path: root/ace/SV_Semaphore_Simple.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ace/SV_Semaphore_Simple.inl')
-rw-r--r--ace/SV_Semaphore_Simple.inl4
1 files changed, 1 insertions, 3 deletions
diff --git a/ace/SV_Semaphore_Simple.inl b/ace/SV_Semaphore_Simple.inl
index 5dde75ffff6..81a828b4401 100644
--- a/ace/SV_Semaphore_Simple.inl
+++ b/ace/SV_Semaphore_Simple.inl
@@ -7,7 +7,6 @@
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-#if defined (ACE_HAS_WCHAR)
// Semaphores don't offer wide-char names, so convert the name and forward
// to the narrow-char open().
ACE_INLINE int
@@ -18,13 +17,12 @@ ACE_SV_Semaphore_Simple::open (const wchar_t *name,
mode_t perms)
{
ACE_TRACE ("ACE_SV_Semaphore_Simple::open (wchar_t)");
- return this->open (ACE_Wide_To_Ascii (name).char_rep (),
+ return this->open (ACE_TEXT_TO_CHAR_IN (name),
flags,
initial_value,
nsems,
perms);
}
-#endif /* ACE_HAS_WCHAR */
ACE_INLINE int
ACE_SV_Semaphore_Simple::control (int cmd,