From efc2cf23a849f7be1d65c4cdd7767f88917c46a7 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 21 Feb 2007 21:55:16 +0000 Subject: Progress toward clean SDCC compilation git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@18 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/include/errno.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'nuttx/include/errno.h') diff --git a/nuttx/include/errno.h b/nuttx/include/errno.h index 50fddfc9f..d189ccaa0 100644 --- a/nuttx/include/errno.h +++ b/nuttx/include/errno.h @@ -188,8 +188,16 @@ extern "C" { #define EXTERN extern #endif +/* Return a pointer to the thread specifid errno */ + extern int *get_errno_ptr(void); +#ifndef CONFIG_CAN_CAST_POINTERS +/* Return the value ERROR cast to (void*) */ + +extern void *get_errorptr(void); +#endif + #undef EXTERN #if defined(__cplusplus) } -- cgit v1.2.3