mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
include: Ensure float.h is included for DBL_MAX.
I didn't actually hit the issue in practice, but just happen to notice while looking at the code. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
60eff44277
commit
8d5c303ab9
1 changed files with 1 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ roundf(float x)
|
|||
#endif
|
||||
|
||||
#ifndef INFINITY
|
||||
#include <float.h> // DBL_MAX
|
||||
#define INFINITY (DBL_MAX + DBL_MAX)
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue