]> git.droids-corp.org - aversive.git/blobdiff - include/aversive/pgmspace.h
merge hostsim in main
[aversive.git] / include / aversive / pgmspace.h
index ff37bdfea201f279c8d9326fd161a6aa3fa230ea..9ff8df4daf3f7b9479a871fb36c54cc8fc69ebe4 100644 (file)
@@ -39,6 +39,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
+#include <string.h>
 
 typedef void prog_void;
 typedef char prog_char;
@@ -111,7 +112,7 @@ static inline int vsprintf_P(char *buf, const prog_char *s,
 #define PGM_P const char *
 #define PSTR(x) x
 #define PROGMEM
-#define printf_P(arg...) printf(args)
+#define printf_P(args...) printf(args)
 #define sprintf_P(buf, args...) sprintf(buf, args)
 #define snprintf_P(buf, n, args...) snprintf(buf, n, args)