diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2013-08-26 14:27:33 +0300 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-27 18:04:23 +0200 |
commit | 79e77a58a6b71f79af2e864ffa91eb2cc16c5216 (patch) | |
tree | b87ba2d9f8b0b77a2a498f687fd0dcc1e55a4f18 /src/3rdparty/harfbuzz-ng/src/config.h | |
parent | a70c0ad1d15e1346f7784f4e720bbe460af85c17 (diff) |
Make it possible to build HarfBuzz-NG in Qt
Change-Id: Ib956adb0ab7bcfba3ce73acf7c19bda815d6eb73
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/3rdparty/harfbuzz-ng/src/config.h')
-rw-r--r-- | src/3rdparty/harfbuzz-ng/src/config.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/3rdparty/harfbuzz-ng/src/config.h b/src/3rdparty/harfbuzz-ng/src/config.h new file mode 100644 index 0000000000..62e42e54e4 --- /dev/null +++ b/src/3rdparty/harfbuzz-ng/src/config.h @@ -0,0 +1,24 @@ +#ifndef HB_CONFIG_H +#define HB_CONFIG_H + +#define HAVE_OT + +#define HB_NO_MT +#define HB_NO_UNICODE_FUNCS + +#include <QtCore/qglobal.h> + +#ifndef HB_INTERNAL +# define HB_INTERNAL Q_DECL_HIDDEN +#endif + +// because strdup() is not part of strict Posix, declare it here +extern "C" char *strdup(const char *src); + +#ifndef HAVE_ATEXIT +# define HAVE_ATEXIT 1 +# include <QtCore/qcoreapplication.h> +# define atexit qAddPostRoutine +#endif + +#endif /* HB_CONFIG_H */ |