Auteur: Jose-Marcio Martins da Cruz Date: À: pcre-dev Sujet: Re: [pcre-dev] [Bug 951] On systems requiring inttypes.h the
include is missing in pcre_compile.c
Philip Hazel wrote: >
> What goes wrong? I guess it's related to the new code in pcre_internal.h
> that reads like this:
>
> #if HAVE_STDINT_H
> #include <stdint.h>
> #endif
>
> #if defined INT64_MAX || defined int64_t
> #define INT64_OR_DOUBLE int64_t
> #else
> #define INT64_OR_DOUBLE double
> #endif
>
> On my Linux box (which does have /usr/include/inttypes.h, incidentally),
> there is no problem. The only way I can see that this can fail is if
> INT64_MAX is defined, but int64_t is neither defined nor typedeffed.
> (It is a great pity that C does not contain a preprocessor facility for
> asking "is xxx typedeffed?".)
It works fine for me in both Sparc and X86 architecture under Solaris 10 and Sun CC.
I'm wondering if this problem appears only when compiling with gcc.