Use new CPU-neutral program-memory API.
[bertos.git] / mware / formatwr.h
index 6e8ed15cadaf4c692fbbc91834cf40fa17965d01..3be5896fe0814a7b0a877c22cabdd1ee9d3d6f13 100755 (executable)
 
 /*#*
  *#* $Log$
+ *#* Revision 1.7  2005/02/16 20:28:03  bernie
+ *#* Add %S formatter.
+ *#*
+ *#* Revision 1.6  2005/01/08 08:50:06  bernie
+ *#* Make more portable.
+ *#*
  *#* Revision 1.5  2004/08/25 14:12:09  rasky
  *#* Aggiornato il comment block dei log RCS
  *#*
@@ -31,8 +37,9 @@
 #ifndef MWARE_FORMATWR_H
 #define MWARE_FORMATWR_H
 
-#include <stdarg.h>
+#include <stdarg.h> /* va_list */
 #include <config.h>
+#include <cpu.h>    /* CPU_HARVARD */
 
 /*!
  * \name _formatted_write() configuration
@@ -57,14 +64,14 @@ _formatted_write(
        void *user_data,
        va_list ap);
 
-#ifdef __AVR__
-       #include <avr/pgmspace.h>
+#if CPU_HARVARD
+       #include "pgm.h"
        int _formatted_write_P(
                const char * PROGMEM format,
                void put_char_func(char c, void *user_data),
                void *user_data,
                va_list ap);
-#endif /* __AVR__ */
+#endif /* CPU_HARVARD */
 
 #endif /* MWARE_FORMATWR_H */