mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 03:05:40 +08:00
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:
+2
-1
@@ -42,6 +42,7 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#include <nuttx/compiler.h>
|
#include <nuttx/compiler.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Definitions
|
* Definitions
|
||||||
@@ -436,7 +437,7 @@ EXTERN int lib_lowprintf(const char *format, ...);
|
|||||||
|
|
||||||
/* Dump a buffer of data */
|
/* 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
|
/* If the cross-compiler's pre-processor does not support variable
|
||||||
* length arguments, then these additional APIs will be built.
|
* length arguments, then these additional APIs will be built.
|
||||||
|
|||||||
+14
-5
@@ -42,6 +42,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
#include <nuttx/compiler.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
@@ -51,11 +52,19 @@
|
|||||||
|
|
||||||
/* Select the lowest level debug interface available */
|
/* Select the lowest level debug interface available */
|
||||||
|
|
||||||
# ifdef CONFIG_ARCH_LOWPUTC
|
#ifdef CONFIG_CPP_HAVE_VARARGS
|
||||||
# define message(format, arg...) lib_lowprintf(format, ##arg)
|
# ifdef CONFIG_ARCH_LOWPUTC
|
||||||
|
# define message(format, arg...) lib_lowprintf(format, ##arg)
|
||||||
|
# else
|
||||||
|
# define message(format, arg...) lib_rawprintf(format, ##arg)
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
# define message(format, arg...) lib_rawprintf(format, ##arg)
|
# ifdef CONFIG_ARCH_LOWPUTC
|
||||||
# endif
|
# define message lib_lowprintf
|
||||||
|
# else
|
||||||
|
# define message lib_rawprintf
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* 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;
|
int i, j, k;
|
||||||
|
|
||||||
|
|||||||
@@ -66,6 +66,7 @@
|
|||||||
# include <net/uip/resolv.h>
|
# include <net/uip/resolv.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <arpa/inet.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <net/uip/uip-lib.h>
|
#include <net/uip/uip-lib.h>
|
||||||
#include <net/uip/webclient.h>
|
#include <net/uip/webclient.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user