summaryrefslogtreecommitdiff
path: root/ACE/ace/config-win32-mingw.h
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2011-06-20 17:20:52 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2011-06-20 17:20:52 +0000
commit968e66be43f6448e74c5e3c1b4419d979203f418 (patch)
tree0696fc929fefb02718b5df148bc803332a010caa /ACE/ace/config-win32-mingw.h
parentf6f832ff1fc22dd6b44841d4269a9995b89a2410 (diff)
downloadATCD-968e66be43f6448e74c5e3c1b4419d979203f418.tar.gz
ChangeLogTag: Mon Jun 20 17:17:26 UTC 2011 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'ACE/ace/config-win32-mingw.h')
-rw-r--r--ACE/ace/config-win32-mingw.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ACE/ace/config-win32-mingw.h b/ACE/ace/config-win32-mingw.h
index 1b20b3fdf61..c30956e6d5b 100644
--- a/ACE/ace/config-win32-mingw.h
+++ b/ACE/ace/config-win32-mingw.h
@@ -92,6 +92,16 @@
#define ACE_INT64_FORMAT_SPECIFIER_ASCII "%I64d"
#define ACE_UINT64_FORMAT_SPECIFIER_ASCII "%I64u"
+#define ACE_LONG_DOUBLE_FORMAT_SPECIFIER_ASCII "%24.16G"
+
+// MinGW as supplied doesn't support the long double format
+// in printf out of the box. So for long double constants,
+// generated from IDL, we must print the literal as a double.
+// The directive below will make the argument to printf agree
+// with the format string defined above. It will not affect
+// marshaling (see CDR_Base.h, near the top of the workaround
+// struct LongDouble).
+#define ACE_CDR_IMPLEMENT_WITH_NATIVE_DOUBLE 1
#define ACE_ENDTHREADEX(STATUS) ::_endthreadex ((DWORD) (STATUS))