]> git.donarmstrong.com Git - tmk_firmware.git/blobdiff - common/print.h
Adhoc fix compile error of usb_usb
[tmk_firmware.git] / common / print.h
index a828328b6e15c645d36dbe933d1e04c1dab53a52..7799328910eb96d93096c9d210c3ebbb6f03e402 100644 (file)
 
 // this macro allows you to write print("some text") and
 // the string is automatically placed into flash memory :)
-// TODO: avoid collision with arduino/Print.h
-#ifndef __cplusplus
 #define print(s)                print_P(PSTR(s))
-#endif
 #define println(s)              print_P(PSTR(s "\n"))
 
-#ifndef AVR_LIBC_PRINTF
-#define printf(f, ...)          xprintf(f, ##__VA_ARGS__)
-#endif
-
 /* for old name */
 #define pdec(data)              print_dec(data)
 #define pdec16(data)            print_dec(data)