have local stdio.h file to avoid newlib issues

... we should move to -nostdinc at some point :/
This commit is contained in:
Harald Welte
2017-02-28 01:25:12 +01:00
parent adba0ce80b
commit c430ac1f2a
3 changed files with 37 additions and 3 deletions

View File

@@ -59,10 +59,11 @@
//------------------------------------------------------------------------------
// Global Variables
//------------------------------------------------------------------------------
//
FILE* const stdin = NULL;
FILE* const stdout = NULL;
FILE* const stderr = NULL;
// Required for proper compilation.
struct _reent r = {0, (FILE *) 0, (FILE *) 1, (FILE *) 0};
struct _reent *_impure_ptr = &r;
//------------------------------------------------------------------------------
// Local Functions