[jbig2-dev] jbig2dec and OpenVMS

Ralph Giles ralph.giles@artifex.com
Wed, 7 May 2003 12:28:01 +0100


On Friday, April 25, 2003, at 10:24 am, Jacob (=Jouk) Jansen wrote:

> Today I tried to compile the jbig2.dev in GhostScript on OpenVMS.
> In order to do this I had to make 2 changes to the jbig2dec 
> distribution:

Nifty, thanks for looking at this.

>  1) in jbig2.h I had to include <inttypes.h> in order to get uint*_t
>      definitions

This should probably become

	#if defined(VMS)
	#  include <inttypes.h>
	#endif

in Ghostscript's stdpre.h, in the #else clause of HAVE_STDINT_H. Let me 
know if that doesn't work.

>  2) OpenVMS does not contain vsnprintf. I had to add the sources for 
> this
>      routine (see below)

I've included it, thought he advertising clause is annoying for just 
one file. I wonder if we're better off writing our own or just 
disabling that functionality of VMS? It's only used in the default 
error handler.

I guess you can't use the autoconf build at all on OpenVMS?

  -r