From 14f2db1eb2dcb54cc6505dcee070a51cd4a5d186 Mon Sep 17 00:00:00 2001 From: richard Date: Sat, 10 Feb 2001 18:13:32 +0000 Subject: [PATCH] bracket enum declarations with preprocessor defines to avoid redefinition of the same enums. --- WINGs/WINGs/WINGs.h | 4 ++++ src/GNUstep.h | 5 +++-- wmlib/WMaker.h | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/WINGs/WINGs/WINGs.h b/WINGs/WINGs/WINGs.h index 0912ecd6..88a05ea5 100644 --- a/WINGs/WINGs/WINGs.h +++ b/WINGs/WINGs/WINGs.h @@ -42,6 +42,8 @@ typedef struct { #define ClientMessageMask (1L<<30) +#ifndef _DEFINED_GNUSTEP_WINDOW_INFO +#define _DEFINED_GNUSTEP_WINDOW_INFO /* * Window levels are taken from GNUstep (gui/AppKit/NSWindow.h) * NSDesktopWindowLevel intended to be the level at which things @@ -76,6 +78,8 @@ enum { WMIconWindowMask = 64, WMMiniWindowMask = 128 }; +#endif + /* button types */ typedef enum { diff --git a/src/GNUstep.h b/src/GNUstep.h index 2529fc90..c8e0e63a 100644 --- a/src/GNUstep.h +++ b/src/GNUstep.h @@ -53,7 +53,8 @@ enum { WMTitleBarMain = 2 }; -#ifndef _WINGS_H_ +#ifndef _DEFINED_GNUSTEP_WINDOW_INFO +#define _DEFINED_GNUSTEP_WINDOW_INFO /* * Window levels are taken from GNUstep (gui/AppKit/NSWindow.h) * NSDesktopWindowLevel intended to be the level at which things @@ -88,7 +89,7 @@ enum { WMIconWindowMask = 64, WMMiniWindowMask = 128 }; -#endif /* _WINGS_H_ */ +#endif /* window manager -> appkit notifications */ #define GNUSTEP_WM_NOTIFICATION "GNUSTEP_WM_NOTIFICATION" diff --git a/wmlib/WMaker.h b/wmlib/WMaker.h index 8a45e006..891d8de6 100644 --- a/wmlib/WMaker.h +++ b/wmlib/WMaker.h @@ -68,7 +68,8 @@ typedef struct { #define WMFHideApplication 12 -#if !defined(_NSWindow_h_) && !defined(_GNUstep_H_GUITypes) +#ifndef _DEFINED_GNUSTEP_WINDOW_INFO +#define _DEFINED_GNUSTEP_WINDOW_INFO /* * Window levels are taken from GNUstep (gui/AppKit/NSWindow.h) * NSDesktopWindowLevel intended to be the level at which things