mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-01 04:12:07 +00:00
patch #6459: Made err_t overridable to use a more efficient type (define LWIP_ERR_T in cc.h)
This commit is contained in:
parent
c93cfb2c74
commit
94cd14e90d
@ -19,6 +19,10 @@ HISTORY
|
|||||||
|
|
||||||
++ New features:
|
++ New features:
|
||||||
|
|
||||||
|
2008-06-17 Simon Goldschmidt
|
||||||
|
* err.h: patch #6459: Made err_t overridable to use a more efficient type
|
||||||
|
(define LWIP_ERR_T in cc.h)
|
||||||
|
|
||||||
2008-06-17 Simon Goldschmidt
|
2008-06-17 Simon Goldschmidt
|
||||||
* slipif.c: patch #6480: Added a configuration option for slipif for symmetry
|
* slipif.c: patch #6480: Added a configuration option for slipif for symmetry
|
||||||
to loopif
|
to loopif
|
||||||
|
@ -33,12 +33,19 @@
|
|||||||
#define __LWIP_ERR_H__
|
#define __LWIP_ERR_H__
|
||||||
|
|
||||||
#include "lwip/opt.h"
|
#include "lwip/opt.h"
|
||||||
|
#include "lwip/arch.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef s8_t err_t;
|
/** Define LWIP_ERR_T in cc.h if you want to use
|
||||||
|
* a different type for your platform (must be signed). */
|
||||||
|
#ifdef LWIP_ERR_T
|
||||||
|
typedef LWIP_ERR_T err_t;
|
||||||
|
#else /* LWIP_ERR_T */
|
||||||
|
typedef s8_t err_t;
|
||||||
|
#endif /* LWIP_ERR_T*/
|
||||||
|
|
||||||
/* Definitions for error constants. */
|
/* Definitions for error constants. */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user