[Gpephone-devel] LiPS header problem
WANG Yanke RD-ILAB-PEK
yanke.wang at orange-ftgroup.com
Thu Jan 17 05:01:31 CET 2008
Hi Florian,
It's really a potential problem in LiPS TAPI spec.
Now I include stdint.h and stddef.h to get the defination of uint*_t
and size_t:
#include <stdint.h>
/* Get size_t from <stddef.h> */
#define __need_size_t
#include <stddef.h>
Is it OK and appropriate for TAPI spec?
On Wed, 2008-01-16 at 12:37 +0100, Florian Boor wrote:
> Hi,
>
> last build of the latest SVN code identified a problem in one of the LiPS API
> header.
>
> From tel_bas_types.h:
>
> #ifndef _STDINT_H
> typedef unsigned long uint32_t;
> typedef unsigned short uint16_t;
> typedef unsigned char uint8_t;
> /* typedef long int32_t; */
> typedef unsigned int size_t;
> #endif
>
> This will be a source of endless trouble if you include this header file before
> stdint.h because you will end up in having these types redefined.
> A better solution would be to include stdint.h. this should be ok because its an
> ISO C99 header file. If not it would be better to take a look at stdint.h and
> check the definitions it does for the single types and do the same.
>
> Greetings
>
> Florian
>
Best regards
Yanke
More information about the Gpephone-devel
mailing list