summaryrefslogtreecommitdiff
path: root/firmware/libc
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2013-01-18 16:16:59 +0100
committerFranklin Wei <git@fwei.tk>2017-12-23 20:54:56 -0500
commita8423321b802bff39fe2ba22f2b0a26220a57535 (patch)
tree10ec3a75a1547c6232202664d091388b57917c38 /firmware/libc
parentd35a18f6b4f6b0871cf5369fa9bc2d6ea990fa82 (diff)
stdio compat layer for plugins
This is attempt to simplify porting programs to rockbox (as plugins). Currently this compat layer implements: fopen(), fclose(), fflush(), fread(), fwrite(), fseek(), fseeko(), ftell(), ftello(), fgetc(), ungetc(), fputc(), fgets(), clearerr(), ferror(), feof(), fprintf() In order to use it you need to include in ported sources "lib/stdio_compat.h" Change-Id: I5add615dd19c5af9c767ccbfb1bd5a4e466741cb
Diffstat (limited to 'firmware/libc')
-rw-r--r--firmware/libc/include/stdint.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/libc/include/stdint.h b/firmware/libc/include/stdint.h
index 93f234c0e8..011c4ab8fc 100644
--- a/firmware/libc/include/stdint.h
+++ b/firmware/libc/include/stdint.h
@@ -104,4 +104,6 @@
#endif
+#define uintmax_t unsigned long long
+#define intmax_t long long
#endif /* __STDINT_H__ */