From: ayin Date: Fri, 14 Dec 2007 00:04:23 +0000 (+0000) Subject: Group fallback definitions together. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=8a7d81a9417b152ef0f5573c5c88c4b28af5f0a9;p=dana%2Furxvt.git Group fallback definitions together. --- 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 {