From 3c95b1cfcc1b323d461eb3a92a1560dd0882294e Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Sat, 27 Apr 2013 13:45:01 +0200 Subject: Define matherr only on platforms where it is used --- erts/emulator/sys/unix/sys_float.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'erts/emulator/sys/unix') diff --git a/erts/emulator/sys/unix/sys_float.c b/erts/emulator/sys/unix/sys_float.c index 787f8d6728..689be98969 100644 --- a/erts/emulator/sys/unix/sys_float.c +++ b/erts/emulator/sys/unix/sys_float.c @@ -832,6 +832,8 @@ sys_chars_to_double(char* buf, double* fp) return 0; } +#ifdef USE_MATHERR + int matherr(struct exception *exc) { @@ -842,3 +844,5 @@ matherr(struct exception *exc) #endif return 1; } + +#endif -- cgit v1.2.3