Skip to content

Commit

Permalink
Try the new patch
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Nov 22, 2024
1 parent 668b541 commit 03b6044
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/gmt_notposix.h
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,16 @@

#ifndef NAN
# ifdef _MSC_VER
# define NAN (-(float)(((float)(1e+300 * 1e+300)) * 0.0F));
# ifndef INFINITY
# ifndef _HUGE_ENUF
# define _HUGE_ENUF 1e+300 // _HUGE_ENUF*_HUGE_ENUF must overflow
# endif
# define INFINITY ((float)(_HUGE_ENUF * _HUGE_ENUF))
# endif
# define NAN (-(float)(INFINITY * 0.0F))
# else /* _MSC_VER */
# define NAN (HUGE_VAL-HUGE_VAL);
static const double _NAN = (HUGE_VAL-HUGE_VAL);
# define NAN _NAN
# endif /* _MSC_VER */
#endif /* !NAN */

Expand Down

0 comments on commit 03b6044

Please sign in to comment.