mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
If toolchain doesn't have weak symbols, must provide user_initialize()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@349 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+18
-1
@@ -70,7 +70,24 @@
|
|||||||
# include <net/uip/webclient.h>
|
# include <net/uip/webclient.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int user_start(int argc, char *argv[])
|
/************************************************************
|
||||||
|
* user_initialize
|
||||||
|
************************************************************/
|
||||||
|
|
||||||
|
#ifndef CONFIG_HAVE_WEAKFUNCTIONS
|
||||||
|
void user_initialize(void)
|
||||||
|
{
|
||||||
|
/* Stub that must be provided only if the toolchain does
|
||||||
|
* not support weak functions.
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/************************************************************
|
||||||
|
* user_start
|
||||||
|
************************************************************/
|
||||||
|
|
||||||
|
int user_start(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
struct in_addr addr;
|
struct in_addr addr;
|
||||||
uip_ipaddr_t ipaddr;
|
uip_ipaddr_t ipaddr;
|
||||||
|
|||||||
Reference in New Issue
Block a user