summaryrefslogtreecommitdiff
path: root/ace/OS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/OS.cpp')
-rw-r--r--ace/OS.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ace/OS.cpp b/ace/OS.cpp
index 0da00b1ef60..40291b5a335 100644
--- a/ace/OS.cpp
+++ b/ace/OS.cpp
@@ -1012,7 +1012,7 @@ ACE_OS::sprintf (wchar_t *buf, const wchar_t *format, ...)
{
ACE_OS_TRACE ("ACE_OS::sprintf");
-# if defined (ACE_HAS_XPG4_MULTIBYTE_CHAR)
+# if defined (_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)
// The XPG4/UNIX98/C99 signature of the wide-char sprintf has a
// maxlen argument. Since this method doesn't supply one, pass in
@@ -1083,7 +1083,7 @@ int
ACE_OS::snprintf (wchar_t *buf, size_t maxlen, const wchar_t *format, ...)
{
// ACE_OS_TRACE ("ACE_OS::snprintf");
-#if defined (ACE_HAS_XPG4_MULTIBYTE_CHAR) || defined (ACE_WIN32)
+#if (defined (_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)) || defined (ACE_WIN32)
int result;
va_list ap;
va_start (ap, format);