mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 01:01:07 +00:00
fmin()/fmax() is available with vs2012 and newer. patch from Eric Wasylishen.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@907 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
ec5d6ba83d
commit
908ecf84a0
1 changed files with 4 additions and 1 deletions
|
@ -35,9 +35,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
# pragma warning(disable:4267)
|
||||
/* 'var' : conversion from 'size_t' to 'type',
|
||||
possible loss of data (/Wp64 warning) */
|
||||
/* MSC doesn't have fmin() / fmax(), use the min/max macros: */
|
||||
/* MSC has fmin() / fmax() in VS2013, and according to the
|
||||
* docs, VS2012. Use the min/max macros on earlier versions: */
|
||||
#if _MSC_VER < 1700
|
||||
#define fmax q_max
|
||||
#define fmin q_min
|
||||
#endif
|
||||
#endif /* _MSC_VER */
|
||||
#endif /* _WIN32 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue