patch #6459: Made err_t overridable to use a more efficient type (define LWIP_ERR_T in cc.h)

This commit is contained in:
goldsimon 2008-06-17 20:27:31 +00:00
parent c93cfb2c74
commit 94cd14e90d
2 changed files with 12 additions and 1 deletions

View File

@ -19,6 +19,10 @@ HISTORY
++ 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
* slipif.c: patch #6480: Added a configuration option for slipif for symmetry
to loopif

View File

@ -33,12 +33,19 @@
#define __LWIP_ERR_H__
#include "lwip/opt.h"
#include "lwip/arch.h"
#ifdef __cplusplus
extern "C" {
#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. */