Mercurial > hg > octave-max
comparison src/sysdep.cc @ 12046:efdc5df061b6 release-3-2-x
initialize floating point values properly for NetBSD systems
author | Aleksej Saushev <asau@inbox.ru> |
---|---|
date | Sat, 25 Jul 2009 16:21:51 +0200 |
parents | 2de1ae881cea |
children | cd96d29c5efa |
comparison
equal
deleted
inserted
replaced
12045:42d51e66729b | 12046:efdc5df061b6 |
---|---|
93 | 93 |
94 #ifndef STDIN_FILENO | 94 #ifndef STDIN_FILENO |
95 #define STDIN_FILENO 1 | 95 #define STDIN_FILENO 1 |
96 #endif | 96 #endif |
97 | 97 |
98 #if defined (__386BSD__) || defined (__FreeBSD__) | 98 #if defined (__386BSD__) || defined (__FreeBSD__) || defined (__NetBSD__) |
99 static void | 99 static void |
100 BSD_init (void) | 100 BSD_init (void) |
101 { | 101 { |
102 #if defined (HAVE_FLOATINGPOINT_H) | 102 #if defined (HAVE_FLOATINGPOINT_H) |
103 // Disable trapping on common exceptions. | 103 // Disable trapping on common exceptions. |
298 #endif | 298 #endif |
299 | 299 |
300 void | 300 void |
301 sysdep_init (void) | 301 sysdep_init (void) |
302 { | 302 { |
303 #if defined (__386BSD__) || defined (__FreeBSD__) | 303 #if defined (__386BSD__) || defined (__FreeBSD__) || defined(__NetBSD__) |
304 BSD_init (); | 304 BSD_init (); |
305 #elif defined (__MINGW32__) | 305 #elif defined (__MINGW32__) |
306 MINGW_init (); | 306 MINGW_init (); |
307 #elif defined (_MSC_VER) | 307 #elif defined (_MSC_VER) |
308 MSVC_init (); | 308 MSVC_init (); |