summaryrefslogtreecommitdiff
path: root/source/luametatex/source/libraries/pplib/util/utildecl.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/luametatex/source/libraries/pplib/util/utildecl.h')
-rw-r--r--source/luametatex/source/libraries/pplib/util/utildecl.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/source/luametatex/source/libraries/pplib/util/utildecl.h b/source/luametatex/source/libraries/pplib/util/utildecl.h
new file mode 100644
index 000000000..b11e5b884
--- /dev/null
+++ b/source/luametatex/source/libraries/pplib/util/utildecl.h
@@ -0,0 +1,28 @@
+
+#ifndef UTIL_DECL_H
+#define UTIL_DECL_H
+
+/*
+UTILDLL - when building .dll
+UTILEXE - when building .exe to import symbols from .dll
+*/
+
+#if defined (_WIN32) || defined(_WIN64)
+# ifdef UTILDLL
+# define UTILAPI __declspec(dllexport)
+# define UTILDEF __declspec(dllexport)
+# else
+# ifdef UTILEXE
+# define UTILAPI __declspec(dllimport)
+# define UTILDEF
+# else
+# define UTILAPI
+# define UTILDEF
+# endif
+# endif
+#else
+# define UTILAPI
+# define UTILDEF
+#endif
+
+#endif \ No newline at end of file