Date: Tue, 25 Aug 1998 17:48:57 +0000 From: Mike Smith <mike@dingo.cdrom.com> To: Mike Smith <mike@smith.net.au> Cc: Alex <garbanzo@hooked.net>, current <current@FreeBSD.ORG> Subject: Re: MAXDOUBLE and values.h? Message-ID: <199808251748.RAA01162@dingo.cdrom.com> In-Reply-To: Your message of "Tue, 25 Aug 1998 17:39:21 GMT." <199808251739.RAA01034@dingo.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Ok, I've got a quick question. I've got an app which uses MAXDOUBLE, and > > includes values.h to get at it. values.h has a #warn that tells me it's > > depreciated. So I grep -R'd all the headers in /usr/include, and nothing > > else seemed to have a #define for MAXDOUBLE? Is this a mistake, or should > > MAXDOUBLE be avoided? > > You should use <sys/limits.h>, and MAXDOUBLE will come out of the > machine-specific headers in <machine/> Blah. I should think faster or type slower. MAXDOUBLE is deprecated. By including <float.h>, you will implicitly include <machine/float.h>, which contains the approved (ANSI, POSIX, etc.) constants. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808251748.RAA01162>