Skip to content
Snippets Groups Projects
Commit 7ebdc9e4 authored by Jose Fonseca's avatar Jose Fonseca
Browse files

util: Don't attempt to redefine INFINITY/NAN on VS 2013.


There are now provided by VS.

Reviewed-by: default avatarBrian Paul <brianp@vmware.com>
Reviewed-by: default avatarRoland Scheidegger <sroland@vmware.com>
parent 8c879ac1
No related branches found
No related tags found
Loading
......@@ -138,8 +138,13 @@ roundf(float x)
}
#endif
#ifndef INFINITY
#define INFINITY (DBL_MAX + DBL_MAX)
#endif
#ifndef NAN
#define NAN (INFINITY - INFINITY)
#endif
#endif /* _MSC_VER */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment