[Top][All Lists]
[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.]
- [lwip-users] [lwip] question on /src/arch/unix/include/arch/cc.h,
Manik, Raina (IE10) <=