diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-20 22:39:56 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-20 22:39:56 +0000 |
commit | 630b4bdd3d2ca967f0e1d4f438f7f1761461dd31 (patch) | |
tree | f640e5eab1ce66cdeadd0ab3684ea326f56db8a5 /nuttx/include/stdio.h | |
parent | bd7dce092d36128a0f84e5544ccc857a45f6ba2f (diff) | |
download | px4-nuttx-630b4bdd3d2ca967f0e1d4f438f7f1761461dd31.tar.gz px4-nuttx-630b4bdd3d2ca967f0e1d4f438f7f1761461dd31.tar.bz2 px4-nuttx-630b4bdd3d2ca967f0e1d4f438f7f1761461dd31.zip |
Eliminating GCC dependencies
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@14 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/stdio.h')
-rw-r--r-- | nuttx/include/stdio.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/include/stdio.h b/nuttx/include/stdio.h index b210dc708..0cc8639b4 100644 --- a/nuttx/include/stdio.h +++ b/nuttx/include/stdio.h @@ -200,6 +200,7 @@ typedef void DIR; /* Used to reference stdin, stdout, and stderr */ +#ifdef CONFIG_HAVE_INLINE static inline FILE *__stdfile(int fd) { if ((unsigned int)fd < CONFIG_NFILE_DESCRIPTORS) @@ -212,6 +213,9 @@ static inline FILE *__stdfile(int fd) } return NULL; } +#else +extern FILE *__stdfile(int fd); +#endif /************************************************************ * Public Function Prototypes |