1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-28 09:22:27 +01:00

bracket enum declarations with preprocessor defines to avoid

redefinition of the same enums.
This commit is contained in:
richard
2001-02-10 18:13:32 +00:00
parent e4ce88e7f1
commit 14f2db1eb2
3 changed files with 9 additions and 3 deletions

View File

@@ -42,6 +42,8 @@ typedef struct {
#define ClientMessageMask (1L<<30) #define ClientMessageMask (1L<<30)
#ifndef _DEFINED_GNUSTEP_WINDOW_INFO
#define _DEFINED_GNUSTEP_WINDOW_INFO
/* /*
* Window levels are taken from GNUstep (gui/AppKit/NSWindow.h) * Window levels are taken from GNUstep (gui/AppKit/NSWindow.h)
* NSDesktopWindowLevel intended to be the level at which things * NSDesktopWindowLevel intended to be the level at which things
@@ -76,6 +78,8 @@ enum {
WMIconWindowMask = 64, WMIconWindowMask = 64,
WMMiniWindowMask = 128 WMMiniWindowMask = 128
}; };
#endif
/* button types */ /* button types */
typedef enum { typedef enum {

View File

@@ -53,7 +53,8 @@ enum {
WMTitleBarMain = 2 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) * Window levels are taken from GNUstep (gui/AppKit/NSWindow.h)
* NSDesktopWindowLevel intended to be the level at which things * NSDesktopWindowLevel intended to be the level at which things
@@ -88,7 +89,7 @@ enum {
WMIconWindowMask = 64, WMIconWindowMask = 64,
WMMiniWindowMask = 128 WMMiniWindowMask = 128
}; };
#endif /* _WINGS_H_ */ #endif
/* window manager -> appkit notifications */ /* window manager -> appkit notifications */
#define GNUSTEP_WM_NOTIFICATION "GNUSTEP_WM_NOTIFICATION" #define GNUSTEP_WM_NOTIFICATION "GNUSTEP_WM_NOTIFICATION"

View File

@@ -68,7 +68,8 @@ typedef struct {
#define WMFHideApplication 12 #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) * Window levels are taken from GNUstep (gui/AppKit/NSWindow.h)
* NSDesktopWindowLevel intended to be the level at which things * NSDesktopWindowLevel intended to be the level at which things