From becaae96bbc6349b7679ecc3d17975f62a1798f4 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sun, 27 May 2018 10:24:08 +0200 Subject: Fix autoconf script to include the proper header for timeval. diff --git a/configure.in b/configure.in index 636ba18..846ea1c 100644 --- a/configure.in +++ b/configure.in @@ -163,7 +163,7 @@ AC_CHECK_FUNCS([strcasecmp strncasecmp strchr strerror strrchr strtol strtod]) AC_CHECK_FUNCS([time localtime snprintf vsnprintf usleep select getenv isatty chmod]) AC_CHECK_FUNCS([tcsetattr tcgetattr tcflush tcdrain cfmakeraw cfsetospeed cfsetispeed]) AC_CHECK_FUNCS([ioctl open creat close read write unlink fileno]) -AC_CHECK_TYPE([struct timeval],[AC_DEFINE(HAS_STRUCT_TIMEVAL,[1],[Define to 1 if struct timeval is available])]) +AC_CHECK_TYPE([struct timeval],[AC_DEFINE(HAS_STRUCT_TIMEVAL,[1],[Define to 1 if struct timeval is available])],[],[[#include ]]) # # # Check for where X11 could be -- 2.16.4 From ea6ff9f537c4ae38bddca83b01231c69e78636d0 Mon Sep 17 00:00:00 2001 From: begasus Date: Sat, 8 Sep 2018 12:15:05 +0200 Subject: Haiku doesn't have ecvt_r function diff --git a/mathpackpatch.cpp b/mathpackpatch.cpp index c8c8e1e..af39ac9 100644 --- a/mathpackpatch.cpp +++ b/mathpackpatch.cpp @@ -299,7 +299,7 @@ void MathPackPatch::FASC(class AdrSpace *adr,class CPU *cpu) // as it allows more control on the formatting. The Mathpack uses // naturally an exponential notation one digit sooner than the C // standard. -#if HAVE_ECVT_R +#if defined(HAVE_ECVT_R) && !defined(__HAIKU__) int decimal; int sign; int exponent = 0; -- 2.16.4 From e2e048e500def8eab5a13f3462e8bebf412f56b6 Mon Sep 17 00:00:00 2001 From: begasus Date: Sat, 8 Sep 2018 12:17:54 +0200 Subject: don't use fullscreen on startup diff --git a/sdl_frontend.cpp b/sdl_frontend.cpp index f5029c7..a25d7c8 100644 --- a/sdl_frontend.cpp +++ b/sdl_frontend.cpp @@ -88,7 +88,7 @@ SDL_FrontEnd::SDL_FrontEnd(class Machine *mach,int unit) MouseButton = false; MouseSpeedLimit = 1; fullscreen = true; -#if defined _WIN32 +#if defined _WIN32 || defined __HAIKU__ // Actually, SDL should do this itself, but doesn't // on win. ShieldCursor = true; -- 2.16.4