summaryrefslogtreecommitdiff
path: root/Build/source/texk
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2014-11-15 09:47:40 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2014-11-15 09:47:40 +0000
commitcd208958389d98e50e7229b4943e007a30c7675e (patch)
tree266044584106d8fcda718e941e1c0dafd2573018 /Build/source/texk
parenteda355d779dfc65dd2bdf356c273b98c6db30a06 (diff)
texk/dvipdfm-x: Support to make DLL in W32TeX
git-svn-id: svn://tug.org/texlive/trunk@35589 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog4
-rw-r--r--Build/source/texk/dvipdfm-x/dvipdfmx.c18
2 files changed, 19 insertions, 3 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index 19dce78223c..b4382b93869 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -1,3 +1,7 @@
+2014-11-15 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * dvipdfmx.c: Support to make DLL in W32TeX.
+
2014-11-05 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
* dpxfile.c: Check if fqpn == NULL in dpx_open_file(), because
diff --git a/Build/source/texk/dvipdfm-x/dvipdfmx.c b/Build/source/texk/dvipdfm-x/dvipdfmx.c
index e3b5541f7fc..a4767609de7 100644
--- a/Build/source/texk/dvipdfm-x/dvipdfmx.c
+++ b/Build/source/texk/dvipdfm-x/dvipdfmx.c
@@ -884,12 +884,24 @@ do_mps_pages (void)
}
}
-/* TODO: MetaPost mode */
+/* Support to make DLL in W32TeX */
+#define DLLPROC dlldvipdfmxmain
+#if defined(WIN32) && !defined(XETEX) && !defined(__MINGW32__) && !defined(MIKTEX)
+extern __declspec(dllexport) int DLLPROC (int argc, char *argv[]);
+#else
+#undef DLLPROC
+#endif
+
#if defined(MIKTEX)
# define main Main
#endif
-int CDECL
-main (int argc, char *argv[])
+
+int
+#if defined(DLLPROC)
+DLLPROC (int argc, char *argv[])
+#else
+CDECL main (int argc, char *argv[])
+#endif
{
double dvi2pts;
char *base;