Skip to content

Commit

Permalink
Avoid Windows macro conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWielemaker committed Nov 18, 2024
1 parent f5d79b0 commit 163338a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pl-write.c
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,7 @@ format_float(char *buf, size_t size, double f, int N, char E)
Sdprintf("dtoa(): decpt=%d, sign=%d, len = %d, '%s'\n",
decpt, sign, end-s, s));

#undef OUT /* minwindef.h */
#define OUT(c) \
do { if ( o<limit ) *o++ = (c); else o++; } while(0)
#define OUTN(s,n) \
Expand Down Expand Up @@ -1236,6 +1237,10 @@ format_float(char *buf, size_t size, double f, int N, char E)
}
}

#undef OUTN
#undef OUTS
#undef OUT

freedtoa(s);

if ( o < limit )
Expand Down

0 comments on commit 163338a

Please sign in to comment.