summaryrefslogtreecommitdiffstats
path: root/src/ghostscript-test.c
diff options
context:
space:
mode:
authordarealshinji <djcj@gmx.de>2016-07-20 10:18:24 (GMT)
committerdarealshinji <djcj@gmx.de>2016-07-20 10:23:32 (GMT)
commitcb2fe8983c9d9bade09272aa97871b245884745a (patch)
tree8c8964bbc025a895373ca8ced562d5110708f76b /src/ghostscript-test.c
parent801a2d1d9bf6facfee1c1cdc1833ed26a1661800 (diff)
downloadmxe-cb2fe8983c9d9bade09272aa97871b245884745a.zip
mxe-cb2fe8983c9d9bade09272aa97871b245884745a.tar.gz
mxe-cb2fe8983c9d9bade09272aa97871b245884745a.tar.bz2
Add package 'ghostscript'
Diffstat (limited to 'src/ghostscript-test.c')
-rw-r--r--src/ghostscript-test.c46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/ghostscript-test.c b/src/ghostscript-test.c
new file mode 100644
index 0000000..10e0a54
--- /dev/null
+++ b/src/ghostscript-test.c
@@ -0,0 +1,46 @@
+/*
+ * This file is part of MXE.
+ * See index.html for further information.
+ */
+
+#ifdef _WIN32
+
+#include <windows.h>
+
+#ifndef _Windows
+# define _Windows
+#endif
+
+#ifndef GSDLLEXPORT
+# ifdef GS_STATIC_LIB
+# define GSDLLEXPORT
+# else
+# define GSDLLEXPORT __declspec(dllimport)
+# endif
+#endif
+
+#endif /* _WIN32 */
+
+#include <iapi.h>
+
+void *minst;
+
+int main(int argc, char *argv[])
+{
+ int code;
+
+ (void)argc;
+ (void)argv;
+
+ code = gsapi_new_instance(&minst, 0);
+ if (code < 0)
+ return 1;
+
+ code = gsapi_exit(minst);
+ if (code < 0)
+ return 1;
+
+ gsapi_delete_instance(minst);
+
+ return 0;
+}