(min, max): Define as macros.
authorKarl Heuer <kwzh@gnu.org>
Thu, 9 Apr 1998 18:12:46 +0000 (18:12 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 9 Apr 1998 18:12:46 +0000 (18:12 +0000)
src/unexw32.c
src/w32.c
src/w32term.c

index b1fa3e8..5d196a8 100644 (file)
@@ -47,6 +47,11 @@ extern char my_endbss[];
 
 #include "w32heap.h"
 
+#undef min
+#undef max
+#define min(x, y) (((x) < (y)) ? (x) : (y))
+#define max(x, y) (((x) > (y)) ? (x) : (y))
+
 /* Basically, our "initialized" flag.  */
 BOOL need_to_recreate_heap = FALSE;
 
index f64e015..ca05a17 100644 (file)
--- a/src/w32.c
+++ b/src/w32.c
@@ -79,6 +79,11 @@ Boston, MA 02111-1307, USA.
 #include "ndir.h"
 #include "w32heap.h"
  
+#undef min
+#undef max
+#define min(x, y) (((x) < (y)) ? (x) : (y))
+#define max(x, y) (((x) > (y)) ? (x) : (y))
+
 extern Lisp_Object Vw32_downcase_file_names;
 extern Lisp_Object Vw32_generate_fake_inodes;
 extern Lisp_Object Vw32_get_true_file_attributes;
index 053c148..737d189 100644 (file)
@@ -49,6 +49,11 @@ Boston, MA 02111-1307, USA.  */
 #include "keyboard.h"
 #include "intervals.h"
 
+#undef min
+#undef max
+#define min(x, y) (((x) < (y)) ? (x) : (y))
+#define max(x, y) (((x) > (y)) ? (x) : (y))
+
 extern void free_frame_menubar ();
 
 extern Lisp_Object Vwindow_system;