Index: PLATFORMS.md ================================================================== --- PLATFORMS.md +++ PLATFORMS.md @@ -111,11 +111,11 @@ * OS Versions: FreeMiNT 1.19 * Architectures: m68k * Runtimes: ObjFW * Compilers: GCC 4.6.4 (MiNT 20130415) - * Limitations: No threads, no sockets + * Limitations: No shared libraries, no threads MorphOS ------- Index: configure.ac ================================================================== --- configure.ac +++ configure.ac @@ -141,11 +141,11 @@ LIBS="$LIBS -latomic" ;; *-*-mint*) enable_shared="no" enable_threads="no" # TODO - enable_sockets="no" # TODO + with_tls="no" ;; esac AS_IF([test x"$host_os" = x"msdosdjgpp" -a x"$build_os" = x"msdosdjgpp"], [ dnl Hack to make configure find these on DOS. @@ -425,11 +425,11 @@ AC_MSG_CHECKING(whether we need -D_GNU_SOURCE) AC_EGREP_CPP(egrep_cpp_yes, [ #include #if defined(__GLIBC__) || defined(__MINGW32__) || \ - defined(__NEWLIB__) || defined(__MORPHOS__) + defined(__NEWLIB__) || defined(__MORPHOS__) || defined(__MINT__) egrep_cpp_yes #endif ], [ AC_MSG_RESULT(yes) CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS" @@ -1504,10 +1504,14 @@ #endif #ifdef __morphos__ # error MorphOS has the struct but does not support it #endif + + #ifdef __MINT__ + # error Gives invalid argument at runtime + #endif ]) AC_CHECK_FUNCS(paccept accept4, break) AC_CHECK_FUNCS(kqueue1 kqueue, [ Index: utils/ofhttp/ProgressBar.m ================================================================== --- utils/ofhttp/ProgressBar.m +++ utils/ofhttp/ProgressBar.m @@ -27,10 +27,15 @@ static const float oneKibibyte = 1024; static const float oneMebibyte = 1024 * 1024; static const float oneGibibyte = 1024 * 1024 * 1024; static const OFTimeInterval updateInterval = 0.1; + +#ifdef OF_MINT +/* freemint-gcc does not have trunc() */ +# define trunc(x) ((int64_t)(x)) +#endif #ifndef HAVE_TRUNCF # define truncf(x) trunc(x) #endif