mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-07-07 20:29:04 +00:00
remove double-define of BYTE_ORDER; added 2 #ifndefs to compile with cygwin gcc
This commit is contained in:
parent
f687cc2699
commit
e491f6b335
@ -37,16 +37,20 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/** @todo fix some warnings */
|
||||
/** @todo fix some warnings: don't use #pragma if compiling with cygwin gcc */
|
||||
#ifndef __GNUC__
|
||||
#pragma warning (disable: 4127)
|
||||
#pragma warning (disable: 4244)
|
||||
#pragma warning (disable: 4706)
|
||||
#pragma warning (disable: 4996)
|
||||
#endif
|
||||
|
||||
#define LWIP_PROVIDE_ERRNO
|
||||
|
||||
/* Define platform endianness */
|
||||
/* Define platform endianness (might already be defined) */
|
||||
#ifndef BYTE_ORDER
|
||||
#define BYTE_ORDER LITTLE_ENDIAN
|
||||
#endif /* BYTE_ORDER */
|
||||
|
||||
/* Define generic types used in lwIP */
|
||||
typedef unsigned char u8_t;
|
||||
@ -66,9 +70,6 @@ typedef u32_t mem_ptr_t;
|
||||
#define S32_F "ld"
|
||||
#define X32_F "lx"
|
||||
|
||||
/* Compiler hints for byte order */
|
||||
#define BYTE_ORDER LITTLE_ENDIAN
|
||||
|
||||
/* Compiler hints for packing structures */
|
||||
#define PACK_STRUCT_STRUCT
|
||||
#define PACK_STRUCT_USE_INCLUDES
|
||||
|
Loading…
Reference in New Issue
Block a user