Group fallback definitions together.
authorayin <ayin>
Fri, 14 Dec 2007 00:04:23 +0000 (00:04 +0000)
committerayin <ayin>
Fri, 14 Dec 2007 00:04:23 +0000 (00:04 +0000)
src/rxvt.h

index a627d8d2122a759ac18f329961174a1df023b0b0..a6c631e215e78ab159d903ac8470988295f69732 100644 (file)
@@ -81,6 +81,19 @@ typedef struct termios ttymode_t;
 # define STDERR_FILENO  2
 #endif
 
+#if !defined (EACCESS) && defined(EAGAIN)
+# define EACCESS EAGAIN
+#endif
+
+#ifndef EXIT_SUCCESS            /* missing from <stdlib.h> */
+# define EXIT_SUCCESS           0       /* exit function success */
+# define EXIT_FAILURE           1       /* exit function failure */
+#endif
+
+#ifndef PATH_MAX
+# define PATH_MAX 16384
+#endif
+
 /****************************************************************************/
 
 // exception thrown on fatal (per-instance) errors
@@ -214,17 +227,6 @@ struct mouse_event {
 # define NO_MOUSE_REPORT_SCROLLBAR 1
 #endif
 
-/* now look for other badly set stuff */
-
-#if !defined (EACCESS) && defined(EAGAIN)
-# define EACCESS EAGAIN
-#endif
-
-#ifndef EXIT_SUCCESS            /* missing from <stdlib.h> */
-# define EXIT_SUCCESS           0       /* exit function success */
-# define EXIT_FAILURE           1       /* exit function failure */
-#endif
-
 #define scrollBar_esc           30
 
 #if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(XTERM_SCROLLBAR) || defined(PLAIN_SCROLLBAR)
@@ -596,10 +598,6 @@ enum {
 #define CBUFSIZ                2048    // size of command buffer
 #define UBUFSIZ                2048    // character buffer
 
-#ifndef PATH_MAX
-# define PATH_MAX 16384
-#endif
-
 #if ENABLE_FRILLS
 # include <X11/Xmd.h>
 typedef struct _mwmhints {