From 75ec461eeaa851cb5c53f4cfffc434e3e529ed1d Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Mon, 22 Jun 2020 21:10:04 +0200 Subject: Restructures the project source and cleans up a bit --- lib/cmark/src/cmark_export.h | 41 +++++++++++++++++++++++++++++++++++++++++ lib/cmark/src/cmark_version.h | 7 +++++++ 2 files changed, 48 insertions(+) create mode 100644 lib/cmark/src/cmark_export.h create mode 100644 lib/cmark/src/cmark_version.h (limited to 'lib/cmark/src') diff --git a/lib/cmark/src/cmark_export.h b/lib/cmark/src/cmark_export.h new file mode 100644 index 0000000..835e550 --- /dev/null +++ b/lib/cmark/src/cmark_export.h @@ -0,0 +1,41 @@ +#ifndef CMARK_EXPORT_H +#define CMARK_EXPORT_H + +#ifdef CMARK_STATIC_DEFINE +# define CMARK_EXPORT +# define CMARK_NO_EXPORT +#else +# ifndef CMARK_EXPORT +# ifdef libcmark_EXPORTS + /* We are building this library */ +# define CMARK_EXPORT __attribute__((visibility("default"))) +# else + /* We are using this library */ +# define CMARK_EXPORT __attribute__((visibility("default"))) +# endif +# endif + +# ifndef CMARK_NO_EXPORT +# define CMARK_NO_EXPORT __attribute__((visibility("hidden"))) +# endif +#endif + +#ifndef CMARK_DEPRECATED +# define CMARK_DEPRECATED __attribute__ ((__deprecated__)) +#endif + +#ifndef CMARK_DEPRECATED_EXPORT +# define CMARK_DEPRECATED_EXPORT CMARK_EXPORT CMARK_DEPRECATED +#endif + +#ifndef CMARK_DEPRECATED_NO_EXPORT +# define CMARK_DEPRECATED_NO_EXPORT CMARK_NO_EXPORT CMARK_DEPRECATED +#endif + +#if 0 /* DEFINE_NO_DEPRECATED */ +# ifndef CMARK_NO_DEPRECATED +# define CMARK_NO_DEPRECATED +# endif +#endif + +#endif /* CMARK_EXPORT_H */ diff --git a/lib/cmark/src/cmark_version.h b/lib/cmark/src/cmark_version.h new file mode 100644 index 0000000..21de71a --- /dev/null +++ b/lib/cmark/src/cmark_version.h @@ -0,0 +1,7 @@ +#ifndef CMARK_VERSION_H +#define CMARK_VERSION_H + +#define CMARK_VERSION ((0 << 16) | (29 << 8) | 0) +#define CMARK_VERSION_STRING "0.29.0" + +#endif // CMARK_VERSION_H -- cgit v1.2.3