cccp.c: Don't define MIN/MAX anymore.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Wed, 16 Dec 1998 09:34:57 +0000 (09:34 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Wed, 16 Dec 1998 09:34:57 +0000 (09:34 +0000)
        * cccp.c: Don't define MIN/MAX anymore.
        * cpplib.c: Likewise.
        * machmode.h: Likewise.
        * system.h: Provide definitions for MIN/MAX.

From-SVN: r24339

gcc/ChangeLog
gcc/cccp.c
gcc/cpplib.c
gcc/machmode.h
gcc/system.h

index f701355725214e74bac975773a0d0dcfe7277504..800d6ba4ffd5bc7758c2bf2f15faa12950d7fe12 100644 (file)
@@ -1,3 +1,10 @@
+Wed Dec 16 12:28:54 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * cccp.c: Don't define MIN/MAX anymore.
+       * cpplib.c: Likewise.
+       * machmode.h: Likewise.
+       * system.h: Provide definitions for MIN/MAX.
+
 Tue Dec 15 23:47:42 1998  Zack Weinberg  <zack@rabi.phys.columbia.edu>  
 
        * fix-header.c: Don't define xstrdup here.
index d7bdbffd74ab03b009a914fd0d9e23725af2f7ce..440081c72f05d17bc3834309cc38db97a916f325 100644 (file)
@@ -87,11 +87,6 @@ static int hack_vms_include_specification ();
 #define INO_T_EQ(a, b) 0
 #endif
 
-#undef MIN
-#undef MAX
-#define MIN(X,Y) ((X) < (Y) ? (X) : (Y))
-#define MAX(X,Y) ((X) > (Y) ? (X) : (Y))
-
 /* Find the largest host integer type and set its size and type.
    Watch out: on some crazy hosts `long' is shorter than `int'.  */
 
index fb85bf56ffb1358fc3d97ed1eeafa359c81152ed..63c9ff15b320eeb4953989aa36dac8143533cdc4 100644 (file)
@@ -45,12 +45,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 extern char *update_path PARAMS ((char *, char *));
 
-#undef MIN
-#undef MAX
-#define MIN(X,Y) ((X) < (Y) ? (X) : (Y))
-#define MAX(X,Y) ((X) > (Y) ? (X) : (Y))
-
-
 /* By default, colon separates directories in a path.  */
 #ifndef PATH_SEPARATOR
 #define PATH_SEPARATOR ':'
index 8f2ed9539e16e2d7609059611765230886725579..2e2eb15d553d3102215b8e6cfcc5c4ca281a29bc 100644 (file)
@@ -22,17 +22,7 @@ Boston, MA 02111-1307, USA.  */
 #define HAVE_MACHINE_MODES
 
 /* Strictly speaking, this isn't the proper place to include these definitions,
-   but this file is included by every GCC file.
-
-   Some systems define these in, e.g., param.h.  We undefine these names
-   here to avoid the warnings.  We prefer to use our definitions since we
-   know they are correct.  */
-
-#undef MIN
-#undef MAX
-
-#define MIN(X,Y) ((X) < (Y) ? (X) : (Y))
-#define MAX(X,Y) ((X) > (Y) ? (X) : (Y))
+   but this file is included by every GCC file. */
 
 /* Find the largest host integer type and set its size and type.  */
 
index daa47eb1bbd7b5d467c0185218aa41154b8c2256..5b3daae5167f59235a18cad4f563e5f3bc37beb5 100644 (file)
@@ -171,6 +171,15 @@ extern int errno;
 # define O_WRONLY 1
 #endif
 
+/* Some systems define these in, e.g., param.h.  We undefine these names
+   here to avoid the warnings.  We prefer to use our definitions since we
+   know they are correct.  */
+
+#undef MIN
+#undef MAX
+#define MIN(X,Y) ((X) < (Y) ? (X) : (Y))
+#define MAX(X,Y) ((X) > (Y) ? (X) : (Y))
+
 #ifdef HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #endif