]> granicus.if.org Git - python/commitdiff
Issue #19922: define _INCLUDE__STDC_A1_SOURCE in HP-UX to include mbstate_t
authorChristian Heimes <christian@cheimes.de>
Sat, 7 Dec 2013 22:39:33 +0000 (23:39 +0100)
committerChristian Heimes <christian@cheimes.de>
Sat, 7 Dec 2013 22:39:33 +0000 (23:39 +0100)
for mbrtowc().

Misc/NEWS
configure
configure.ac
pyconfig.h.in

index f623a194b58d7cba58314cbdbf3d2b48e64ee86c..0675cf8ee4d25f6b80e6b7fcd0031aa4c9dfc511 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -108,6 +108,9 @@ Tests
 Build
 -----
 
+- Issue #19922: define _INCLUDE__STDC_A1_SOURCE in HP-UX to include mbstate_t
+  for mbrtowc().
+
 - Issue #19788: kill_python(_d).exe is now run as a PreBuildEvent on the
   pythoncore sub-project.  This should prevent build errors due a previous
   build's python(_d).exe still running.
index 5d666ed93eb47b84372755807205ac5dabe03dc3..6bcc4b5b3e27245a421b0b19c372d12442e6d26e 100755 (executable)
--- a/configure
+++ b/configure
@@ -3445,6 +3445,15 @@ $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h
 
 fi
 
+# On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
+case $ac_sys_system in
+hp*|HP*)
+
+$as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h
+
+  ;;
+esac
+
 #
 # SGI compilers allow the specification of the both the ABI and the
 # ISA on the command line.  Depending on the values of these switches,
index 14b3aef6046c905a85f899fa3a897fe6125f8859..2d701b1e6210a48d3844b2222b9555d67b38c75e 100644 (file)
@@ -522,6 +522,13 @@ then
   AC_DEFINE(_POSIX_C_SOURCE, 200809L, Define to activate features from IEEE Stds 1003.1-2008)
 fi
 
+# On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
+case $ac_sys_system in
+hp*|HP*)
+  AC_DEFINE(_INCLUDE__STDC_A1_SOURCE, 1, Define to include mbstate_t for mbrtowc)
+  ;;
+esac
+
 #
 # SGI compilers allow the specification of the both the ABI and the
 # ISA on the command line.  Depending on the values of these switches,
index 29e1bfa89afeeb14afb823e054ab949b774a9e38..3574f67322d9f8c5e02e12e694198620cd725130 100644 (file)
 /* Define on Linux to activate all library features */
 #undef _GNU_SOURCE
 
+/* Define to include mbstate_t for mbrtowc */
+#undef _INCLUDE__STDC_A1_SOURCE
+
 /* This must be defined on some systems to enable large file support. */
 #undef _LARGEFILE_SOURCE