summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2005-06-26 22:25:49 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2005-06-26 22:25:49 +0000
commit9c53f989468300f7b20708b239718754b4431855 (patch)
tree8e5312708c394ba152ce535ee71fff3e612fa840 /riscos
parent5817f82ba852fd72466dea176548c5cedfad677a (diff)
downloadnetsurf-9c53f989468300f7b20708b239718754b4431855.tar.gz
netsurf-9c53f989468300f7b20708b239718754b4431855.tar.bz2
[project @ 2005-06-26 22:25:49 by jmb]
Update to cater for changes in UnixLib: - unixlib/features.h is now features.h - __dynamic_da_name is now declared as const char * const - We explicitly force all FPU exceptions/traps back on (UnixLib default is now off) Correct error message when <NetSurf$Dir>.Resources.Sprites is missing. svn path=/import/netsurf/; revision=1767
Diffstat (limited to 'riscos')
-rw-r--r--riscos/gui.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index 77eb3d108..bca01913a 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -11,13 +11,14 @@
#include <assert.h>
#include <errno.h>
+#include <fpu_control.h>
#include <signal.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
-#include <unixlib/features.h>
+#include <features.h>
#include <unixlib/local.h>
#include "oslib/font.h"
#include "oslib/help.h"
@@ -108,10 +109,9 @@
#define FILETYPE_JPEG 0xc85
#endif
-
int os_version = 0;
-const char *__dynamic_da_name = "NetSurf"; /**< For UnixLib. */
+const char * const __dynamic_da_name = "NetSurf"; /**< For UnixLib. */
int __dynamic_da_max_size = 128 * 1024 * 1024; /**< For UnixLib. */
int __feature_imagefs_is_file = 1; /**< For UnixLib. */
/* default filename handling */
@@ -238,6 +238,10 @@ void gui_init(int argc, char** argv)
struct theme_descriptor *descriptor = NULL;
char *nsdir_temp;
+ /* re-enable all FPU exceptions/traps -
+ * UnixLib disables them by default */
+ _FPU_SETCW(_FPU_IEEE);
+
xhourglass_start(1);
/* read OS version for code that adapts to conform to the OS (remember
@@ -446,7 +450,7 @@ void ro_gui_sprites_init(void)
die(e->errmess);
}
if (obj_type != fileswitch_IS_FILE)
- die("<NetSurf$Dir>.Resources.Pointers missing.");
+ die("<NetSurf$Dir>.Resources.Sprites missing.");
gui_sprites = malloc(len + 4);
if (!gui_sprites)