Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bad cast.
[simgrid.git] / src / xbt / mmalloc / mrealloc.c
index 753eda8..89360df 100644 (file)
@@ -1,6 +1,6 @@
 /* Change the size of a block allocated by `mmalloc'. */
 
-/* Copyright (c) 2010-2018. The SimGrid Team.
+/* Copyright (c) 2010-2019. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
 
 #include "mmprivate.h"
 
+#ifndef MIN
+#define MIN(a, b) ((a) < (b) ? (a) : (b))
+#endif
+
 /* Resize the given region to the new size, returning a pointer to the (possibly moved) region. This is optimized for
  * speed; some benchmarks seem to indicate that greater compactness is achieved by unconditionally allocating and
  * copying to a new region.  This module has incestuous knowledge of the internals of both mfree and mmalloc. */