From 8459644f8e7d157fa1c60288a4d88d9c53b631f2 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 14 Feb 2009 22:11:58 +0000 Subject: Use MAX_INT, not 0x7fffffff. On some machines int is 16-bits git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1498 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/lib/lib_internal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nuttx/lib') diff --git a/nuttx/lib/lib_internal.h b/nuttx/lib/lib_internal.h index 37ebd0ffa..0554db07e 100644 --- a/nuttx/lib/lib_internal.h +++ b/nuttx/lib/lib_internal.h @@ -42,6 +42,7 @@ #include #include +#include #include /**************************************************************************** @@ -58,7 +59,7 @@ # define lib_give_semaphore(s) #endif -#define LIB_BUFLEN_UNKNOWN (0x7fffffff) +#define LIB_BUFLEN_UNKNOWN INT_MAX /**************************************************************************** * Public Types -- cgit v1.2.3