diff -r 6dbac3305614 -r 9174be9ac686 src/Main.h --- a/src/Main.h Sun Feb 09 21:27:55 2014 +0200 +++ b/src/Main.h Sun Feb 09 22:43:58 2014 +0200 @@ -78,6 +78,18 @@ String GetVersionString (EFormLength len); String MakeVersionString (int major, int minor, int patch); +template +inline T max (T a, T b) +{ + return a > b ? a : b; +} + +template +inline T min (T a, T b) +{ + return a < b ? a : b; +} + #ifndef __GNUC__ #define __attribute__(X) #endif