summaryrefslogtreecommitdiffstats
path: root/art_config.h.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'art_config.h.cmake')
-rw-r--r--art_config.h.cmake25
1 files changed, 25 insertions, 0 deletions
diff --git a/art_config.h.cmake b/art_config.h.cmake
new file mode 100644
index 0000000..cfa4786
--- /dev/null
+++ b/art_config.h.cmake
@@ -0,0 +1,25 @@
+
+#ifndef _ART_CONFIG_H_
+#define _ART_CONFIG_H_
+
+#define ART_SIZEOF_CHAR @ART_SIZEOF_CHAR@
+#define ART_SIZEOF_SHORT @ART_SIZEOF_SHORT@
+#define ART_SIZEOF_INT @ART_SIZEOF_INT@
+#define ART_SIZEOF_LONG @ART_SIZEOF_LONG@
+
+typedef @ART_U8_TYPE@ art_u8;
+typedef @ART_U16_TYPE@ art_u16;
+typedef @ART_U32_TYPE@ art_u32;
+
+#if defined(__KDE_HAVE_GCC_VISIBILITY) || defined(G_HAVE_GCC_VISIBILITY)
+#define LIBART_NO_EXPORT __attribute__ ((visibility("hidden")))
+#define LIBART_EXPORT __attribute__ ((visibility("default")))
+#elif defined(_WIN32)
+#define LIBART_NO_EXPORT
+#define LIBART_EXPORT __declspec(dllexport)
+#else
+#define LIBART_NO_EXPORT
+#define LIBART_EXPORT
+#endif
+
+#endif /* _ART_CONFIG_H_ */