summaryrefslogtreecommitdiff
path: root/Modules/expat/internal.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-06-15 00:54:36 +0200
committerGitHub <noreply@github.com>2017-06-15 00:54:36 +0200
commit23ec4b57e1359f9c539b8defc317542173ae087e (patch)
tree4da31b261e47f72633b4fee215dc804c41541190 /Modules/expat/internal.h
parentf7e07840d725f2ebb469129cb5e6574ce61725ef (diff)
downloadcpython-git-23ec4b57e1359f9c539b8defc317542173ae087e.tar.gz
bpo-29591: Upgrade Modules/expat to libexpat 2.2 (#2164)
* bpo-29591: Upgrade Modules/expat to libexpat 2.2 * bpo-29591: Restore Python changes on expat * bpo-29591: Remove expat config of unsupported platforms Remove the configuration (Modules/expat/*config.h) of unsupported platforms: * Amiga * MacOS Classic on PPC32 * Open Watcom * bpo-29591: Remove useless XML_HAS_SET_HASH_SALT The XML_HAS_SET_HASH_SALT define of Modules/expat/expat.h became useless since our local expat copy was upgrade to expat 2.1 (it's now expat 2.2.0).
Diffstat (limited to 'Modules/expat/internal.h')
-rw-r--r--Modules/expat/internal.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/Modules/expat/internal.h b/Modules/expat/internal.h
index dd5454831d..94cb98e15c 100644
--- a/Modules/expat/internal.h
+++ b/Modules/expat/internal.h
@@ -71,3 +71,25 @@
#define inline
#endif
#endif
+
+#ifndef UNUSED_P
+# ifdef __GNUC__
+# define UNUSED_P(p) UNUSED_ ## p __attribute__((__unused__))
+# else
+# define UNUSED_P(p) UNUSED_ ## p
+# endif
+#endif
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+void
+align_limit_to_full_utf8_characters(const char * from, const char ** fromLimRef);
+
+
+#ifdef __cplusplus
+}
+#endif