summaryrefslogtreecommitdiff
path: root/ace/config-aix-4.x.h
diff options
context:
space:
mode:
Diffstat (limited to 'ace/config-aix-4.x.h')
-rw-r--r--ace/config-aix-4.x.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/ace/config-aix-4.x.h b/ace/config-aix-4.x.h
index d5b2768852d..6358813be38 100644
--- a/ace/config-aix-4.x.h
+++ b/ace/config-aix-4.x.h
@@ -252,8 +252,15 @@
#define ACE_HAS_UTIME
-// Platform has XPG4 wide character type and functions
+// Platform has XPG4 wide character type and functions. However, the size
+// of wchar_t changes for 32- vs. 64-bit builds (unsigned short vs. unsigned
+// int, respectively).
#define ACE_HAS_XPG4_MULTIBYTE_CHAR
+#ifdef __64BIT__
+# define ACE_SIZEOF_WCHAR 4
+#else
+# define ACE_SIZEOF_WCHAR 2
+#endif /* __64BIT__ */
#define ACE_LACKS_NETINET_TCP_H