From 5e3e41bd09c5877eb48a04f51bb9c69845384527 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Tue, 1 May 2012 00:34:42 -0700 Subject: [PATCH] Add MIN to utils. --- src/utils.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils.h b/src/utils.h index 4b036a5b0..986b059f6 100644 --- a/src/utils.h +++ b/src/utils.h @@ -12,6 +12,10 @@ #define MAX(x,y) ((x) < (y) ? (y) : (x)) #endif +#ifndef MIN +#define MIN(x,y) ((x) > (y) ? (y) : (x)) +#endif + boost::posix_time::ptime ptEpoch(); int iToSeconds(boost::posix_time::ptime ptWhen); boost::posix_time::ptime ptFromSeconds(int iSeconds);