have local stdio.h file to avoid newlib issues

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

No files matched your search

+1
View File
@@ -19,6 +19,7 @@
//#define TRACE_LEVEL 6
#include <stdio.h>
#include <assert.h>
#include <errno.h>
#include <string.h>
+4 -3
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