diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-10-28 13:18:09 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-10-29 10:57:46 +0300 |
commit | ef86898671e8ed060fcc257d08419351db3021f6 (patch) | |
tree | 3789438d9200f87c95ea3ef5a73cef9bde4cd2e3 /libcmark-gfm-extensions/fix-core-extensions-header.patch | |
parent | 69f90ba321ca1bf1387cfdd83993009129db5129 (diff) |
Fix broken cmark-gfm-core-extensions.h
Diffstat (limited to 'libcmark-gfm-extensions/fix-core-extensions-header.patch')
-rw-r--r-- | libcmark-gfm-extensions/fix-core-extensions-header.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libcmark-gfm-extensions/fix-core-extensions-header.patch b/libcmark-gfm-extensions/fix-core-extensions-header.patch new file mode 100644 index 0000000..1400617 --- /dev/null +++ b/libcmark-gfm-extensions/fix-core-extensions-header.patch @@ -0,0 +1,22 @@ +diff --git a/libcmark-gfm-extensions/libcmark-gfm-extensions/extensions/cmark-gfm-core-extensions.h b/libcmark-gfm-extensions/libcmark-gfm-extensions/extensions/cmark-gfm-core-extensions.h +index 0645915..69f1f31 100644 +--- a/libcmark-gfm-extensions/libcmark-gfm-extensions/extensions/cmark-gfm-core-extensions.h ++++ b/libcmark-gfm-extensions/libcmark-gfm-extensions/extensions/cmark-gfm-core-extensions.h +@@ -7,9 +7,16 @@ extern "C" { + + #include "cmark-gfm-extension_api.h" + #include "cmark-gfm-extensions_export.h" +-#include "config.h" // for bool + #include <stdint.h> + ++/* Fix the issue #244, including stdbool.h instead of (private) config.h. ++ * ++ * Note that here we assume that stdbool.h is available regardless if the C99 ++ * standard is specified for the C compiler or not, which is true for all the ++ * platforms/compilers that we currently support. ++ */ ++#include <stdbool.h> ++ + CMARK_GFM_EXTENSIONS_EXPORT + void cmark_gfm_core_extensions_ensure_registered(void); + |