git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32933 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -29,10 +29,10 @@
#include "gdal.h"
#include "ogr_srs_api.h"
-#ifndef MAX
-# define MIN(a,b) ((a<b) ? a : b)
-# define MAX(a,b) ((a>b) ? a : b)
-#endif
+#undef MIN
+#undef MAX
+#define MIN(a,b) ((a) < (b) ? (a) : (b))
+#define MAX(a,b) ((a) > (b) ? (a) : (b))
static void ImportBand(GDALRasterBandH hBand, const char *output,
struct Ref *group_ref);