Re: 2.96.4 pretest

Adrian Bunk <[email protected]>
Newsgroups gmane.comp.tex.tetex.beta
Message-ID <[email protected]>
On Mon, Jun 28, 2004 at 11:52:34AM +0200, Harald Koenig wrote:
> On Jun 27, Thomas Esser wrote:
> 
> >         * upgrade dvipng to version 1.1
> 
> dvipng doesn't compile on DEC OSF1 V4.0 (AXP) because OSF1 
> has neither stdint.h nor inttypes.h which is included in dvipng.h.
> 
> btw: the configure script in dvipng has no test for stdint.h, so
> HAVE_STDINT_H doesn't get set on any platform.
> 
> 
> here is my temporary fix for dvipng on AXP:
> 
> -------------------------------------------------------------------------------
> --- tetex-src-beta-2.96.4.20040627/texk/dvipng/dvipng.h~	Mon May 24 08:11:00 2004
> +++ tetex-src-beta-2.96.4.20040627/texk/dvipng/dvipng.h	Mon Jun 28 11:24:16 2004
> @@ -13,10 +13,21 @@
>  /* Name of the program which is called to generate missing pk files */
>  #define MAKETEXPK "mktexpk"
>  
> +#ifdef __alpha__
> +  typedef __signed char             int8_t;
> +  typedef unsigned char            uint8_t;
> +  typedef short                    int16_t;
> +  typedef unsigned short          uint16_t;
> +  typedef int                      int32_t;
> +  typedef unsigned int            uint32_t;
> +  typedef long long                int64_t;
> +  typedef unsigned long long      uint64_t;
> +#else
>  #ifdef HAVE_STDINT_H
>  #include <stdint.h>
>  #else
>  #include <inttypes.h>
> +#endif
>  #endif
>...

This doesn't look right since e.g. Linux/alpha shouldn't have this 
problem.

What about something like:

#ifdef HAVE_STDINT_H
#include <stdint.h>
#elif defined(HAVE_INTTYPES_H)
#include <inttypes.h>
#elif defined(__alpha__)
..
#else
#error ...
#endif

> Harald Koenig

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.