From: Joerg H. <jo...@de...> - 2004-04-01 20:53:08
|
Hi On Fri, Mar 19, 2004 at 06:48:10PM +0100, matthieu castet wrote: > you could add something like that for those broken compilers (from > ffmpeg libavcodec/common.h) > #ifndef EMULATE_INTTYPES > # include <inttypes.h> > #else > typedef signed char int8_t; > typedef signed short int16_t; > typedef signed int int32_t; > typedef unsigned char uint8_t; > typedef unsigned short uint16_t; > typedef unsigned int uint32_t; > > # ifdef CONFIG_WIN32 > typedef signed __int64 int64_t; > typedef unsigned __int64 uint64_t; > # else /* other OS */ > typedef signed long long int64_t; > typedef unsigned long long uint64_t; > # endif /* other OS */ > #endif /* HAVE_INTTYPES_H */ I've done the small solution for the moment; I include inttypes.h if its available, otherwise I use the old code. This introduces some warnings in printf-Statements, because I haven't found the respective modifiers for uint32_t... Is there a possibility to fix this? Joerg -- Fachbegriffe der Informatik (Nr 177): Mainframe-Admin - Arbeitsschutzschuhe Holger Spielmann |