Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 5 Apr 2012 22:32:27 -0700
From: Isaac Dunham <idunham@...abit.com>
To: musl@...ts.openwall.com
Subject: [PATCH] _BSD_SOURCE in math.h; MAXFLOAT is XOPEN only

This is pretty minor for the most part.
There was one issue I noticed: 
_GNU_SOURCE defines MAXFLOAT here, but glibc only defines it if
_USE_SVID is not defined (I'm not copy-pasting here, I cleaned it
up):
#ifdef _USE_SVID //defined as 1 if _GNU_SOURCE is
..
# define HUGE //Same value as MAXFLOAT
#else
#ifdef _XOPEN_SOURCE
# define MAXFLOAT //ifndef _USE_SVID 
#endif
#endif //SVID

So I moved it so _GNU_SOURCE doesn't add it, and I
added HUGE to _GNU_SOURCE...

Isaac Dunham
View attachment "math.diff" of type "text/x-patch" (1253 bytes)

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.