-#if defined(__GP2X__)
- #include <stdio.h>
- #define lprintf printf
-#elif defined(PSP)
- #if 0
- #include <stdio.h>
- #define lprintf printf
- #else
- extern void lprintf_f(const char *fmt, ...);
- #define lprintf lprintf_f
- #endif
-#else
- #include "giz.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern void lprintf(const char *fmt, ...);
+
+#ifdef __cplusplus
+}
#endif