1
0
Fork 0
forked from nuttx/nuttx-update

Fixes for clean ez80 compilation

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1965 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2009-06-26 19:22:21 +00:00
parent 485013f924
commit 7d37927c61
3 changed files with 17 additions and 6 deletions

View file

@ -42,6 +42,7 @@
#include <nuttx/config.h>
#include <nuttx/compiler.h>
#include <sys/types.h>
/****************************************************************************
* Definitions
@ -436,7 +437,7 @@ EXTERN int lib_lowprintf(const char *format, ...);
/* Dump a buffer of data */
EXTERN int lib_dumpbuffer(FAR const char *msg, FAR const ubyte *buffer, unsigned int buflen);
EXTERN void lib_dumpbuffer(FAR const char *msg, FAR const ubyte *buffer, unsigned int buflen);
/* If the cross-compiler's pre-processor does not support variable
* length arguments, then these additional APIs will be built.

View file

@ -42,6 +42,7 @@
****************************************************************************/
#include <nuttx/config.h>
#include <nuttx/compiler.h>
#include <sys/types.h>
#include <debug.h>
@ -51,11 +52,19 @@
/* Select the lowest level debug interface available */
# ifdef CONFIG_ARCH_LOWPUTC
# define message(format, arg...) lib_lowprintf(format, ##arg)
#ifdef CONFIG_CPP_HAVE_VARARGS
# ifdef CONFIG_ARCH_LOWPUTC
# define message(format, arg...) lib_lowprintf(format, ##arg)
# else
# define message(format, arg...) lib_rawprintf(format, ##arg)
# endif
#else
# define message(format, arg...) lib_rawprintf(format, ##arg)
# endif
# ifdef CONFIG_ARCH_LOWPUTC
# define message lib_lowprintf
# else
# define message lib_rawprintf
# endif
#endif
/****************************************************************************
* Public Functions
@ -69,7 +78,7 @@
*
****************************************************************************/
int lib_dumpbuffer(FAR const char *msg, FAR const ubyte *buffer, unsigned int buflen)
void lib_dumpbuffer(FAR const char *msg, FAR const ubyte *buffer, unsigned int buflen)
{
int i, j, k;

View file

@ -66,6 +66,7 @@
# include <net/uip/resolv.h>
#endif
#include <arpa/inet.h>
#include <netinet/in.h>
#include <net/uip/uip-lib.h>
#include <net/uip/webclient.h>