[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #9072] Add missing include for lwip/sys.h
From: |
Sylvain Rochet |
Subject: |
[lwip-devel] [patch #9072] Add missing include for lwip/sys.h |
Date: |
Tue, 9 Aug 2016 13:31:14 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
Follow-up Comment #8, patch #9072 (project lwip):
It only means your random.h (or whatever name used) doesn't properly declare
your random function prototype.
For example, if you are using the standard libc rand() function, your cc.h
should look like this:
cc.h:
#include <stdlib.h>
#define LWIP_RAND() ((u32_t)rand())
If your random function lives in random.c/random.h, it should look like this:
random.h:
u32_t my_random_function(void);
random.c:
u32_t my_random_function(void) {
return <...random generator here....>;
}
cc.h:
#include "random.h"
#define LWIP_RAND() my_random_function()
Sylvain
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?9072>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [patch #9072] Add missing include for lwip/sys.h, Axel Lin, 2016/08/07
- [lwip-devel] [patch #9072] Add missing include for lwip/sys.h, Sylvain Rochet, 2016/08/07
- [lwip-devel] [patch #9072] Add missing include for lwip/sys.h, Axel Lin, 2016/08/07
- [lwip-devel] [patch #9072] Add missing include for lwip/sys.h, Sylvain Rochet, 2016/08/07
- [lwip-devel] [patch #9072] Add missing include for lwip/sys.h, Simon Goldschmidt, 2016/08/08
- [lwip-devel] [patch #9072] Add missing include for lwip/sys.h, Axel Lin, 2016/08/08
- [lwip-devel] [patch #9072] Add missing include for lwip/sys.h, Sylvain Rochet, 2016/08/08
- [lwip-devel] [patch #9072] Add missing include for lwip/sys.h, Sylvain Rochet, 2016/08/08
- [lwip-devel] [patch #9072] Add missing include for lwip/sys.h, Axel Lin, 2016/08/08
- [lwip-devel] [patch #9072] Add missing include for lwip/sys.h,
Sylvain Rochet <=
- [lwip-devel] [patch #9072] Add missing include for lwip/sys.h, Axel Lin, 2016/08/09