The usual way to define a macro in is to name macro with 'USE_xxx' when
they are used to enable a feature 'xxx'.

Signed-off-by: Christophe CURIS <[email protected]>
---
 src/dialog.c     | 2 +-
 src/motif.c      | 4 ++--
 src/wconfig.h.in | 2 +-
 src/window.c     | 6 +++---
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/dialog.c b/src/dialog.c
index 6bb3424..25c321e 100644
--- a/src/dialog.c
+++ b/src/dialog.c
@@ -1312,7 +1312,7 @@ void wShowInfoPanel(WScreen *scr)
        strbuf = wstrappend(strbuf, _("\nAdditional support for: "));
        strbuf = wstrappend(strbuf, "WMSPEC");
 
-#ifdef MWM_HINTS
+#ifdef USE_MWM_HINTS
        strbuf = wstrappend(strbuf, ", MWM");
 #endif
 
diff --git a/src/motif.c b/src/motif.c
index 7eaba31..55afdac 100644
--- a/src/motif.c
+++ b/src/motif.c
@@ -21,7 +21,7 @@
 
 #include "wconfig.h"
 
-#ifdef MWM_HINTS
+#ifdef USE_MWM_HINTS
 
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
@@ -201,4 +201,4 @@ void wMWMCheckClientHints(WWindow *wwin)
                setupMWMHints(wwin, &hints);
 }
 
-#endif /* MWM_HINTS */
+#endif /* USE_MWM_HINTS */
diff --git a/src/wconfig.h.in b/src/wconfig.h.in
index 2930bcb..49bb11d 100644
--- a/src/wconfig.h.in
+++ b/src/wconfig.h.in
@@ -37,7 +37,7 @@
 #define ANIMATIONS
 
 /* support for Motif window manager (mwm) window hints */
-#define MWM_HINTS
+#define USE_MWM_HINTS
 
 /*
  * Undefine BALLOON_TEXT if you don't want balloons for showing extra
diff --git a/src/window.c b/src/window.c
index d46eca3..121cd16 100644
--- a/src/window.c
+++ b/src/window.c
@@ -65,7 +65,7 @@
 #include "winmenu.h"
 #include "osdep.h"
 
-#ifdef MWM_HINTS
+#ifdef USE_MWM_HINTS
 # include "motif.h"
 #endif
 #include "wmspec.h"
@@ -343,9 +343,9 @@ void wWindowSetupInitialAttributes(WWindow *wwin, int 
*level, int *workspace)
                int tmp_workspace = -1;
                int tmp_level = INT_MIN;        /* INT_MIN is never used by the 
window levels */
 
-#ifdef MWM_HINTS
+#ifdef USE_MWM_HINTS
                wMWMCheckClientHints(wwin);
-#endif                         /* MWM_HINTS */
+#endif /* USE_MWM_HINTS */
 
                wNETWMCheckClientHints(wwin, &tmp_level, &tmp_workspace);
 
-- 
2.1.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to