Add min() macro definition
It's not defined in MSVC and not supported by C standardspull/3/head
parent
6bc84833be
commit
53845ad72e
|
@ -19,6 +19,10 @@
|
|||
#include <cmath>
|
||||
#include <ctime>
|
||||
|
||||
#ifndef min
|
||||
#define min(a, b) ((a) < (b) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue