Ensure mathutil.hpp doesn't break in the presence of min/max macros
This commit is contained in:
@@ -6,9 +6,20 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cmath>
|
||||
#include <SFML/System/Time.hpp>
|
||||
|
||||
// Make sure min and max macros are not defined.
|
||||
// Some Windows headers may define these.
|
||||
#ifdef min
|
||||
#undef min
|
||||
#endif
|
||||
#ifdef max
|
||||
#undef max
|
||||
#endif
|
||||
|
||||
using std::abs;
|
||||
short get_ran(short times, short min, short max);
|
||||
short max(short a,short b);
|
||||
|
Reference in New Issue
Block a user