summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_stdio.inl
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/OS_NS_stdio.inl')
-rw-r--r--ACE/ace/OS_NS_stdio.inl8
1 files changed, 7 insertions, 1 deletions
diff --git a/ACE/ace/OS_NS_stdio.inl b/ACE/ace/OS_NS_stdio.inl
index e24a4024f11..60031b4fd63 100644
--- a/ACE/ace/OS_NS_stdio.inl
+++ b/ACE/ace/OS_NS_stdio.inl
@@ -583,7 +583,7 @@ ACE_INLINE ACE_HANDLE
ACE_OS::fileno (FILE *stream)
{
#if defined ACE_FILENO_EQUIVALENT
- return (ACE_HANDLE)ACE_FILENO_EQUIVALENT (stream);
+ return (ACE_HANDLE)((intptr_t)ACE_FILENO_EQUIVALENT (stream));
#else
return ace_fileno_helper (stream);
#endif
@@ -1014,6 +1014,12 @@ ACE_OS::vsprintf (wchar_t *buffer, const wchar_t *format, va_list argptr)
// ACE_OS::snprintf().
return vswprintf (buffer, 4096, format, argptr);
+# elif defined (__MINGW64_VERSION_MAJOR) && !defined (WIN64)
+ // the MingW64 32bit version causes link errors when using the
+ // 'standard' vswprint(). Luckily they have a mingw special.
+
+ return __mingw_vswprintf (buffer, format, argptr);
+
# elif defined (ACE_WIN32)
// Windows has vswprintf, but the pre-VC8 signature is from the older
// ISO C standard. Also see ACE_OS::snprintf() for more info on this.