From 08b2e5a5495fb08277274eaaf91c21069e0fbadf Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 15 Dec 2009 19:00:40 +0000 Subject: Changing NuttX fixed size type names to C99 standard names -- things will be broken for awhile git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2351 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/examples/sendmail/hostdefs.h | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) (limited to 'nuttx/examples/sendmail/hostdefs.h') diff --git a/nuttx/examples/sendmail/hostdefs.h b/nuttx/examples/sendmail/hostdefs.h index 266fd04f2..da072d560 100755 --- a/nuttx/examples/sendmail/hostdefs.h +++ b/nuttx/examples/sendmail/hostdefs.h @@ -40,36 +40,30 @@ * Included Files *****************************************************************************/ -# include +#include +#include +#include /**************************************************************************** * Preprocessor Defintiions *****************************************************************************/ -# define HTONS(a) htons(a) -# define HTONL(a) htonl(a) -# define CONFIG_CPP_HAVE_WARNING 1 -# define CONFIG_HAVE_GETHOSTBYNAME 1 -# define FAR +#define HTONS(a) htons(a) +#define HTONL(a) htonl(a) +#define CONFIG_CPP_HAVE_WARNING 1 +#define CONFIG_HAVE_GETHOSTBYNAME 1 +#define FAR -# define ndbg(...) printf(__VA_ARGS__) -# define nvdbg(...) printf(__VA_ARGS__) +#define ndbg(...) printf(__VA_ARGS__) +#define nvdbg(...) printf(__VA_ARGS__) -# define TRUE (1) -# define FALSE (0) -# define ERROR (-1) -# define OK (0) +#define ERROR (-1) +#define OK (0) /**************************************************************************** * Type Definitions *****************************************************************************/ -typedef unsigned char uint8; -typedef unsigned char ubyte; -typedef unsigned short uint16; -typedef unsigned int uint32; -typedef unsigned char boolean; - typedef void *(*pthread_startroutine_t)(void *); #endif /* __HOSTDEFS_H */ -- cgit v1.2.3