summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2022-08-28 15:26:30 +0200
committerGitHub <noreply@github.com>2022-08-28 15:26:30 +0200
commit9d246a722576be37d6880a63782dab30132d423e (patch)
tree83c4bdd4f080420fec172eec2b581d9db80e99c6
parentfa9f063fe4f90067212b73f0ca00fe7ba80b2769 (diff)
parent2e4ff883f165e55fbcceb0087a789fced0805e41 (diff)
downloadlibexpat-git-9d246a722576be37d6880a63782dab30132d423e.tar.gz
Merge pull request #636 from neheb/patch-1
CMake: Drop leading whitespace from a #cmakedefine line in file expat_config.h.cmake to workaround issues with Meson
-rwxr-xr-xexpat/apply-clang-format.sh2
-rw-r--r--expat/expat_config.h.cmake2
2 files changed, 2 insertions, 2 deletions
diff --git a/expat/apply-clang-format.sh b/expat/apply-clang-format.sh
index 4b51ff7f..a073eee9 100755
--- a/expat/apply-clang-format.sh
+++ b/expat/apply-clang-format.sh
@@ -56,6 +56,6 @@ find . \
sed \
-e 's, @$,@,' \
- -e 's,#\( \+\)cmakedefine,\1#cmakedefine,' \
+ -e 's,#\( \+\)cmakedefine,#cmakedefine,' \
-i \
expat_config.h.cmake
diff --git a/expat/expat_config.h.cmake b/expat/expat_config.h.cmake
index 173fed16..ee4adc6d 100644
--- a/expat/expat_config.h.cmake
+++ b/expat/expat_config.h.cmake
@@ -94,7 +94,7 @@
#if ! defined(_WIN32)
/* Define to include code reading entropy from `/dev/urandom'. */
- #cmakedefine XML_DEV_URANDOM
+#cmakedefine XML_DEV_URANDOM
#endif
/* Define to make parameter entity parsing functionality available. */