summaryrefslogtreecommitdiff
path: root/ace/OS.cpp
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2002-12-13 23:29:14 +0000
committerSteve Huston <shuston@riverace.com>2002-12-13 23:29:14 +0000
commit9faf03b790b79da7a74e4f41c02d3eecab305acd (patch)
treeded53ff3b4a18b934f933c25490304fd2b22ad8a /ace/OS.cpp
parente03045669f9bc46743a465042c8a561f2e94aa97 (diff)
downloadATCD-9faf03b790b79da7a74e4f41c02d3eecab305acd.tar.gz
ChangeLogTag:Fri Dec 13 18:10:31 2002 Steve Huston <shuston@riverace.com>
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);