more build fixes: MAX into e.h if not defined, remove other definitions as pointed out by Robert David

ticket #1757 (2/3)


SVN revision: 79138
This commit is contained in:
Mike Blumenkrantz 2012-11-12 09:16:23 +00:00
parent cf98c0003f
commit 15b668e01a
4 changed files with 3 additions and 12 deletions

View File

@ -160,6 +160,9 @@ typedef struct _E_Before_Idler E_Before_Idler;
typedef struct _E_Rect E_Rect;
/* convenience macro to compress code and avoid typos */
#ifndef MAX
# define MAX(x, y) (((x) > (y)) ? (x) : (y))
#endif
# define E_FN_DEL(_fn, _h) if (_h) { _fn(_h); _h = NULL; }
# define E_INTERSECTS(x, y, w, h, xx, yy, ww, hh) \
(((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && (((x) + (w)) > (xx)) && (((y) + (h)) > (yy)))

View File

@ -1,9 +1,5 @@
#include "e.h"
#ifndef MAX
# define MAX(x, y) (((x) > (y)) ? (x) : (y))
#endif
#define INITS
#define ACT_GO(name) \
{ \

View File

@ -1,10 +1,6 @@
#include "e.h"
#include "e_mod_main.h"
#ifndef MAX
# define MAX(x, y) (((x) > (y)) ? (x) : (y))
#endif
/* TODO:
* - Track execution status
*/

View File

@ -11,10 +11,6 @@
#define MOD_CFG_FILE_VERSION \
((MOD_CFG_FILE_EPOCH << 16) | MOD_CFG_FILE_GENERATION)
#undef MAX
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
typedef enum _Popup_Corner Popup_Corner;
typedef struct _Config Config;
typedef struct _Config_Item Config_Item;