modded version Dirk-Willem van Gulik's Bonjour/Zerconf library http://mbed.org/users/dirkx/code/Bonjour/
Fork of Bonjour by
lwip/arch/cc.h@8:275256b5d807, 2014-10-16 (annotated)
- Committer:
- casiotone401
- Date:
- Thu Oct 16 14:13:21 2014 +0000
- Revision:
- 8:275256b5d807
- Parent:
- 0:355018f44c9f
minor change
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dirkx | 0:355018f44c9f | 1 | /* |
dirkx | 0:355018f44c9f | 2 | * Author: Adam Dunkels <adam@sics.se> |
dirkx | 0:355018f44c9f | 3 | * |
dirkx | 0:355018f44c9f | 4 | */ |
dirkx | 0:355018f44c9f | 5 | #ifndef __LWIP_ARCH_CC_H__ |
dirkx | 0:355018f44c9f | 6 | #define __LWIP_ARCH_CC_H__ |
dirkx | 0:355018f44c9f | 7 | |
dirkx | 0:355018f44c9f | 8 | #define LITTLE_ENDIAN 1234 |
dirkx | 0:355018f44c9f | 9 | |
dirkx | 0:355018f44c9f | 10 | #define BYTE_ORDER LITTLE_ENDIAN |
dirkx | 0:355018f44c9f | 11 | |
dirkx | 0:355018f44c9f | 12 | typedef unsigned char u8_t; |
dirkx | 0:355018f44c9f | 13 | typedef signed char s8_t; |
dirkx | 0:355018f44c9f | 14 | typedef unsigned short u16_t; |
dirkx | 0:355018f44c9f | 15 | typedef signed short s16_t; |
dirkx | 0:355018f44c9f | 16 | typedef unsigned int u32_t; |
dirkx | 0:355018f44c9f | 17 | typedef signed int s32_t; |
dirkx | 0:355018f44c9f | 18 | typedef unsigned int mem_ptr_t; |
dirkx | 0:355018f44c9f | 19 | |
dirkx | 0:355018f44c9f | 20 | #ifndef NULL |
dirkx | 0:355018f44c9f | 21 | #define NULL 0 |
dirkx | 0:355018f44c9f | 22 | #endif |
dirkx | 0:355018f44c9f | 23 | |
dirkx | 0:355018f44c9f | 24 | #ifndef TRUE |
dirkx | 0:355018f44c9f | 25 | #define TRUE 1 |
dirkx | 0:355018f44c9f | 26 | #endif |
dirkx | 0:355018f44c9f | 27 | |
dirkx | 0:355018f44c9f | 28 | #ifndef FALSE |
dirkx | 0:355018f44c9f | 29 | #define FALSE 0 |
dirkx | 0:355018f44c9f | 30 | #endif |
dirkx | 0:355018f44c9f | 31 | |
dirkx | 0:355018f44c9f | 32 | #ifndef DBG |
dirkx | 0:355018f44c9f | 33 | //#error |
dirkx | 0:355018f44c9f | 34 | #endif |
dirkx | 0:355018f44c9f | 35 | |
dirkx | 0:355018f44c9f | 36 | #define LWIP_PLATFORM_DIAG(x) DBG x |
dirkx | 0:355018f44c9f | 37 | #define LWIP_PLATFORM_ASSERT(x) DBG(x) |
dirkx | 0:355018f44c9f | 38 | |
dirkx | 0:355018f44c9f | 39 | #define LWIP_PROVIDE_ERRNO |
dirkx | 0:355018f44c9f | 40 | |
dirkx | 0:355018f44c9f | 41 | #define U16_F "hu" |
dirkx | 0:355018f44c9f | 42 | #define S16_F "hd" |
dirkx | 0:355018f44c9f | 43 | #define X16_F "hx" |
dirkx | 0:355018f44c9f | 44 | #define U32_F "lu" |
dirkx | 0:355018f44c9f | 45 | #define S32_F "ld" |
dirkx | 0:355018f44c9f | 46 | #define X32_F "lx" |
dirkx | 0:355018f44c9f | 47 | |
dirkx | 0:355018f44c9f | 48 | #if 0 |
dirkx | 0:355018f44c9f | 49 | /*Create compilation problems, and according to http://www.mail-archive.com/lwip-users@nongnu.org/msg06786.html, |
dirkx | 0:355018f44c9f | 50 | lwIP uses packed structures, so packing the field is not really a good idea ;) */ |
dirkx | 0:355018f44c9f | 51 | #define PACK_STRUCT_FIELD(x) __packed x |
dirkx | 0:355018f44c9f | 52 | #else |
dirkx | 0:355018f44c9f | 53 | #define PACK_STRUCT_FIELD(x) x |
dirkx | 0:355018f44c9f | 54 | #endif |
dirkx | 0:355018f44c9f | 55 | |
dirkx | 0:355018f44c9f | 56 | #define PACK_STRUCT_STRUCT |
dirkx | 0:355018f44c9f | 57 | #define PACK_STRUCT_BEGIN __packed |
dirkx | 0:355018f44c9f | 58 | #define PACK_STRUCT_END |
dirkx | 0:355018f44c9f | 59 | |
dirkx | 0:355018f44c9f | 60 | |
dirkx | 0:355018f44c9f | 61 | #endif /* __LWIP_ARCH_CC_H__ */ |