summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_stdio.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2017-07-14 09:33:02 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2017-07-14 09:33:02 +0200
commite024a7de1dfbd52be626a3fb31761795349cf90b (patch)
treeb84ffb596bf00839695b4f07e41cfd85a7812d0c /ACE/ace/OS_NS_stdio.cpp
parentad867d1d5f0c52ebceb1e9d4695e1619d97988a0 (diff)
downloadATCD-e024a7de1dfbd52be626a3fb31761795349cf90b.tar.gz
Introduce new ACE_HAS_VSNPRINTF_EMULATION because the vsnprintf emulation was enabled in to many configuration, found during trying to port to Embarcadero C++ Builder
* ACE/ace/OS_NS_stdio.cpp: * ACE/ace/OS_NS_stdio.h: * ACE/ace/OS_NS_stdio.inl: * ACE/ace/config-lynxos.h: * ACE/tests/OS_Test.cpp:
Diffstat (limited to 'ACE/ace/OS_NS_stdio.cpp')
-rw-r--r--ACE/ace/OS_NS_stdio.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ACE/ace/OS_NS_stdio.cpp b/ACE/ace/OS_NS_stdio.cpp
index 663b412a78a..dd537ae17e9 100644
--- a/ACE/ace/OS_NS_stdio.cpp
+++ b/ACE/ace/OS_NS_stdio.cpp
@@ -500,7 +500,7 @@ ACE_OS::vaswprintf_emulation(wchar_t **bufp, const wchar_t *format, va_list argp
#endif /* ACE_HAS_WCHAR */
#endif /* !ACE_HAS_VASPRINTF */
-#ifndef ACE_LACKS_VA_FUNCTIONS
+#if defined (ACE_HAS_VSNPRINTF_EMULATION)
#ifdef ACE_LACKS_WCHAR_H
typedef int wint_t;
@@ -1593,5 +1593,6 @@ ACE_OS::vsnprintf_emulation (char *buf, size_t max, const char *fmt, va_list ap)
*sb.buf_ = 0;
return static_cast<int> (sb.written_);
}
-#endif // ACE_LACKS_VA_FUNCTIONS
+#endif // ACE_HAS_VSNPRINTF_EMULATION
+
ACE_END_VERSIONED_NAMESPACE_DECL