diff options
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-0.8.7/src')
3 files changed, 13 insertions, 11 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-0.8.7/src/DVIToSVG.cpp b/Build/source/texk/dvisvgm/dvisvgm-0.8.7/src/DVIToSVG.cpp index 102a5b30366..9366a6c11ff 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-0.8.7/src/DVIToSVG.cpp +++ b/Build/source/texk/dvisvgm/dvisvgm-0.8.7/src/DVIToSVG.cpp @@ -18,6 +18,13 @@ ** along with this program; if not, see <http://www.gnu.org/licenses/>. ** *************************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#define VERSION_STR VERSION " (" TARGET_SYSTEM ")" +#else +#define VERSION_STR "" +#endif + #include <cstdlib> #include <ctime> #include <fstream> @@ -50,20 +57,13 @@ #include "DvisvgmSpecialHandler.h" #include "EmSpecialHandler.h" //#include "HtmlSpecialHandler.h" -#if !DISABLE_GS +#if !defined(DISABLE_GS) #include "PsSpecialHandler.h" #endif #include "TpicSpecialHandler.h" /////////////////////////////////// -#ifdef HAVE_CONFIG_H -#include "config.h" -#define VERSION_STR VERSION " (" TARGET_SYSTEM ")" -#else -#define VERSION_STR "" -#endif - using namespace std; // static class variables diff --git a/Build/source/texk/dvisvgm/dvisvgm-0.8.7/src/Ghostscript.cpp b/Build/source/texk/dvisvgm/dvisvgm-0.8.7/src/Ghostscript.cpp index 2af61f51e27..cfa244a652c 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-0.8.7/src/Ghostscript.cpp +++ b/Build/source/texk/dvisvgm/dvisvgm-0.8.7/src/Ghostscript.cpp @@ -19,7 +19,7 @@ *************************************************************************/ #include "Ghostscript.h" -#if !DISABLE_GS +#if !defined(DISABLE_GS) #include <cstring> #include <sstream> diff --git a/Build/source/texk/dvisvgm/dvisvgm-0.8.7/src/Ghostscript.h b/Build/source/texk/dvisvgm/dvisvgm-0.8.7/src/Ghostscript.h index 776f29bf008..3449fed26e5 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-0.8.7/src/Ghostscript.h +++ b/Build/source/texk/dvisvgm/dvisvgm-0.8.7/src/Ghostscript.h @@ -26,7 +26,9 @@ #endif #include <string> -#if HAVE_LIBGS +#if defined(DISABLE_GS) + #include "iapi.h" +#elif HAVE_LIBGS #include <ghostscript/iapi.h> #else #include "DLLoader.h" @@ -37,7 +39,7 @@ #define _Windows #endif -#if DISABLE_GS +#if defined(DISABLE_GS) struct Ghostscript { typedef int (GSDLLCALLPTR Stdin) (void *caller, char *buf, int len); |