From 8a7d81a9417b152ef0f5573c5c88c4b28af5f0a9 Mon Sep 17 00:00:00 2001 From: ayin Date: Fri, 14 Dec 2007 00:04:23 +0000 Subject: [PATCH] Group fallback definitions together. --- src/rxvt.h | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/rxvt.h b/src/rxvt.h index a627d8d2..a6c631e2 100644 --- a/src/rxvt.h +++ b/src/rxvt.h @@ -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 */ +# 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 */ -# 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 typedef struct _mwmhints { -- 2.34.1