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/cmark.pri | 2 ++ lib/cmark/src/cmark_export.h | 41 +++++++++++++++++++++++++++++++++++++++++ lib/cmark/src/cmark_version.h | 7 +++++++ 3 files changed, 50 insertions(+) create mode 100644 lib/cmark/src/cmark_export.h create mode 100644 lib/cmark/src/cmark_version.h (limited to 'lib') diff --git a/lib/cmark/cmark.pri b/lib/cmark/cmark.pri index 01aadfb..403e19e 100644 --- a/lib/cmark/cmark.pri +++ b/lib/cmark/cmark.pri @@ -3,6 +3,8 @@ HEADERS += \ $$PWD/src/buffer.h \ $$PWD/src/chunk.h \ $$PWD/src/cmark.h \ + $$PWD/src/cmark_export.h \ + $$PWD/src/cmark_version.h \ $$PWD/src/config.h \ $$PWD/src/cmark_ctype.h \ $$PWD/src/config.h \ 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