diff packages/infra/current/src/eprintf.c @ 184:022f1e506033

Merge from eCos master repository on 2001-10-02-17:59:22-BST
author jlarmour
date Tue, 02 Oct 2001 18:28:24 +0000
parents f62680ef1804
children e0c0827131d1
line wrap: on
line diff
--- a/packages/infra/current/src/eprintf.c
+++ b/packages/infra/current/src/eprintf.c
@@ -45,16 +45,26 @@
 // CONFIGURATION
 
 #include <pkgconf/system.h>
-/* We can't do anything without the isoinfra package */
+
 #ifdef CYGPKG_ISOINFRA 
-#include <pkgconf/isoinfra.h>   // Configuration header
+# include <pkgconf/isoinfra.h>     // Configuration header
+#endif
 
 // INCLUDES
 
 #include <cyg/infra/cyg_type.h>    // Common type definitions and support
 #include <cyg/infra/cyg_ass.h>     // Default assertion
-#include <stdio.h>
-#include <stdlib.h>
+#include <cyg/infra/diag.h>
+
+#ifdef CYGPKG_ISOINFRA
+# if defined(CYGINT_ISO_STDIO_FORMATTED_IO) || \
+     defined(CYGINT_ISO_STDIO_FILEACCESS)
+#  include <stdio.h>
+# endif
+# if CYGINT_ISO_EXIT
+#  include <stdlib.h>
+# endif
+#endif
 
 // FUNCTIONS
 
@@ -78,6 +88,4 @@
 #endif
 } // __eprintf()
 
-#endif // ifdef CYGPKG_ISOINFRA 
-
 // EOF eprintf.c