This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Eric Botcazou wrote: > Libdecnumber requires a few C99 integer types. > > Tested on Solaris 2.5.1. OK for mainline? > > > 2005-12-02 Eric Botcazou <ebotcazou@libertysurf.fr> > > * decContext.h: If not HAVE_STDINT_H and SIZEOF_INT == 4, > define missing C99 integers types. Wouldn't be something like http://ac-archive.sourceforge.net/gstdint/ be more robust? > > > > > ------------------------------------------------------------------------ > > Index: decContext.h > =================================================================== > --- decContext.h (revision 107870) > +++ decContext.h (working copy) > @@ -42,7 +42,17 @@ > > #ifdef HAVE_STDINT_H > #include <stdint.h> /* C99 standard integers */ > +#else > +typedef unsigned char uint8_t; > +#if SIZEOF_INT == 4 > +typedef unsigned short int uint16_t; > +typedef int int32_t; > +typedef unsigned int uint32_t; > +#else > +#error Missing C99 integer types > #endif > +#endif > + > #include <signal.h> /* for traps */ > > Vaclav Haisman
Attachment:
signature.asc
Description: OpenPGP digital signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |