ftruncate in dekitPPC r 29
Posted: Wed Jan 18, 2017 2:09 pm
In devkitPPC release 29, now the compiler gives a warning for "ftruncate" (undefined function).
Indeed the include file (unist.h) changed in respect to r28.
However the compiler can link the function.
In sys/unistd.h
PPC architecture seems not included in the OR list.
Indeed the include file (unist.h) changed in respect to r28.
However the compiler can link the function.
In sys/unistd.h
Code: Select all
#if defined(__CYGWIN__) || defined(__rtems__) || defined(__aarch64__) || defined (__arm__) || defined(__sh__) || defined(__SPU__)
#if !defined(__INSIDE_CYGWIN__)
int _EXFUN(ftruncate, (int __fd, off_t __length));
int _EXFUN(truncate, (const char *, off_t __length));
#endif
#endif