freebsd-ports/japanese/vfghostscript/files/patch-aa
Satoshi Asami 1b74cf16d6 Japanese ghostscirpt with vector font support.
Submitted by:	Mita Yoshio <mita@jp.FreeBSD.org>
1996-11-02 12:12:52 +00:00

46 lines
1,011 B
Text

*** gs.c.orig Mon May 24 17:17:30 1993
--- gs.c Wed Aug 21 15:04:14 1996
***************
*** 42,47 ****
--- 42,56 ----
#include "ostack.h"
#include "store.h"
#include "files.h" /* requires stream.h */
+
+ #ifdef _HAVE_PARAM_H
+ #include <sys/param.h>
+ #endif
+ #if (defined(BSD) && (BSD>=199103))
+ #include <floatingpoint.h>
+ #endif
+
+
#ifndef GS_LIB
# define GS_LIB "GS_LIB"
***************
*** 111,116 ****
--- 120,129 ----
main(int argc, const char *argv[])
{ int argi;
char cstr[128];
+ #if (defined(BSD) && (BSD>=199103))
+ fpsetmask(fpgetmask() & ~FP_X_INV);
+ /* epag600 driver in gdevep82.c sometimes down with Floating exception. sorry..*/
+ #endif
get_real();
gs_init0(real_stdin, real_stdout, real_stderr, argc);
{ char *lib = getenv(GS_LIB);
***************
*** 356,361 ****
--- 369,378 ----
}
break;
}
+ #if (defined(BSD) && (BSD>=199103))
+ fpresetsticky(FP_X_INV);
+ fpsetmask(fpgetmask() & FP_X_INV);
+ #endif
return 0;
}