Use min/max from sxe-utils
authorNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 6 Dec 2015 21:10:33 +0000 (16:10 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 6 Dec 2015 21:10:33 +0000 (16:10 -0500)
* src/ui/lwlib/xlwmenu.c: Include sxe-utils and remove the current
max macro.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/ui/lwlib/xlwmenu.c

index dae3ca5..8e61905 100644 (file)
@@ -47,17 +47,12 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 #include "lwlib-internal.h"
 
 #include <sxe-utils.h>
+#include <sxe-memory.h>
 
 #ifdef USE_DEBUG_MALLOC
 #include <dmalloc.h>
 #endif
 
-
-/* simple, naive integer maximum */
-#ifndef max
-#define max(a,b) ((a)>(b)?(a):(b))
-#endif
-
 static char
  xlwMenuTranslations[] = "<BtnDown>:   start()\n\
 <BtnMotion>:   drag()\n\