diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2021-04-08 15:39:27 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2021-04-08 15:55:58 +0100 |
commit | 14e65c7460d9113a19ad20e706447f5485d39d6d (patch) | |
tree | 5eb0c273a902bdd415f3c71504ef2feb55bf5173 /contrib | |
parent | 8494df92c31f0f496d28f17fa5d8339ed3c2361d (diff) | |
download | ghostpdl-14e65c7460d9113a19ad20e706447f5485d39d6d.tar.gz |
Tweak escv devices so they build under Windows.
This enables more contrib devices to be debugged/run under windows.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/eplaser/gdevescv.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/eplaser/gdevescv.c b/contrib/eplaser/gdevescv.c index 45bc13754..83248407d 100644 --- a/contrib/eplaser/gdevescv.c +++ b/contrib/eplaser/gdevescv.c @@ -38,7 +38,9 @@ #if ( 6 > GS_VERSION_MAJOR ) #include <string.h> +#ifndef _WIN32 #include <sys/utsname.h> /* for uname(2) */ +#endif #include <ctype.h> /* for toupper(3) */ #include "math_.h" @@ -61,7 +63,9 @@ #else /* 6 <= GS_VERSION_MAJOR */ #include "math_.h" +#ifndef _WIN32 #include <sys/utsname.h> /* for uname(2) */ +#endif #include <ctype.h> /* for toupper(3) */ #include "time_.h" @@ -820,6 +824,9 @@ escv_checkpapersize(gx_device_vector * vdev) static char * get_sysname ( void ) { +#ifdef _WIN32 + return strdup("BOGUS"); +#else char *result = NULL; struct utsname utsn; @@ -828,6 +835,7 @@ get_sysname ( void ) result = strdup (utsn.sysname); } return result; +#endif } /* EPSON printer model name translation. |