summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/H5FDcore.c8
-rw-r--r--src/H5FDsec2.c5
2 files changed, 1 insertions, 12 deletions
diff --git a/src/H5FDcore.c b/src/H5FDcore.c
index 42eda85..4b26335 100644
--- a/src/H5FDcore.c
+++ b/src/H5FDcore.c
@@ -37,12 +37,6 @@
#include "H5MMprivate.h" /* Memory management */
#include "H5Pprivate.h" /* Property lists */
-#undef MAX
-#define MAX(X,Y) ((X)>(Y)?(X):(Y))
-
-#undef MIN
-#define MIN(X,Y) ((X)<(Y)?(X):(Y))
-
/* The driver identification number, initialized at runtime */
static hid_t H5FD_CORE_g = 0;
@@ -85,7 +79,7 @@ typedef struct H5FD_core_fapl_t {
* REGION_OVERFLOW: Checks whether an address and size pair describe data
* which can be addressed entirely in memory.
*/
-#define MAXADDR ((haddr_t)((~(size_t)0)-1))
+#define MAXADDR ((haddr_t)(~(size_t)0))
#define ADDR_OVERFLOW(A) (HADDR_UNDEF==(A) || \
((A) & ~(haddr_t)MAXADDR))
#define SIZE_OVERFLOW(Z) ((Z) & ~(hsize_t)MAXADDR)
diff --git a/src/H5FDsec2.c b/src/H5FDsec2.c
index f8cf0e5..492e024 100644
--- a/src/H5FDsec2.c
+++ b/src/H5FDsec2.c
@@ -41,11 +41,6 @@
#include "H5MMprivate.h" /* Memory management */
#include "H5Pprivate.h" /* Property lists */
-#ifdef MAX
-#undef MAX
-#define MAX(X,Y) ((X)>(Y)?(X):(Y))
-#endif /* MAX */
-
/* The driver identification number, initialized at runtime */
static hid_t H5FD_SEC2_g = 0;