lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] [lwip] question on /src/arch/unix/include/arch/cc.h


From: Manik, Raina (IE10)
Subject: [lwip-users] [lwip] question on /src/arch/unix/include/arch/cc.h
Date: Wed, 08 Jan 2003 23:40:15 -0000

I was looking at the following code 
in /src/arch/unix/include/arch/cc.h


#define PACK_STRUCT_FIELD(x) x __attribute__((packed))
#define PACK_STRUCT_STRUCT __attribute__((packed))
#define PACK_STRUCT_BEGIN
#define PACK_STRUCT_END

The above code assumes a GNU C compiler. There
could be other compilers which may use a different
compiler directive to enforce packed structures.

should'nt the above code be like


#if     defined(GNU_C)
/* rest of code above */
#endif

or am i just braindead ?

thanks,
Manik Raina
[This message was sent through the lwip discussion list.]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]