[brlcad-commits] SF.net SVN: brlcad: [30743] brlcad/trunk/src/nirt/nirt.h
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <bh...@us...> - 2008-04-20 06:43:42
|
Revision: 30743 http://brlcad.svn.sourceforge.net/brlcad/?rev=30743&view=rev Author: bharder Date: 2008-04-19 23:43:18 -0700 (Sat, 19 Apr 2008) Log Message: ----------- Add test, macro for c99 fmax(), missing in NetBSD. Modified Paths: -------------- brlcad/trunk/src/nirt/nirt.h Modified: brlcad/trunk/src/nirt/nirt.h =================================================================== --- brlcad/trunk/src/nirt/nirt.h 2008-04-19 21:13:19 UTC (rev 30742) +++ brlcad/trunk/src/nirt/nirt.h 2008-04-20 06:43:18 UTC (rev 30743) @@ -32,6 +32,15 @@ #ifndef __NIRT_H__ #define __NIRT_H__ +#ifdef __NetBSD__ +#define fmax(x, y) nbsd_fmax(x, y) +static double nbsd_fmax(double x, double y) +{ + return x > y ? x : y; +} +#endif /* __NetBSD__ */ + + #include "common.h" #include "raytrace.h" /* for DEBUG_FORMAT */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |