source: ThirdParty/ASL/trunk/mingw.patch @ 3571

Last change on this file since 3571 was 3571, checked in by tkr, 4 years ago

Adding patch to allow build to go through on MinGW

File size: 369 bytes
Line 
1220,240d219
2< #ifndef NO_matherr
3< #ifdef __MINGW32__
4< #define matherr _matherr
5< #endif
6<
7<  matherr_rettype
8< matherr( struct _exception *e )
9< {
10<       switch(e->type) {
11<         case _DOMAIN:
12<         case _SING:
13<               errno = set_errno(EDOM);
14<               break;
15<         case _TLOSS:
16<         case _OVERFLOW:
17<               errno = set_errno(ERANGE);
18<         }
19<       return 0;
20<       }
21< #endif /*NO_matherr*/
22<
Note: See TracBrowser for help on using the repository browser.