From: Christophe CURIS <[email protected]>
Considering the number of headers we have, it is a good idea to
avoid possible problems. For details, you may read:
http://en.wikipedia.org/wiki/Include_guard
All headers should be ok now.
---
src/geomview.h | 8 ++++----
src/placement.h | 5 +++++
src/shutdown.h | 5 +++++
util/wmmenugen.h | 4 ++++
4 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/src/geomview.h b/src/geomview.h
index 2bd1ddd..ec135fe 100644
--- a/src/geomview.h
+++ b/src/geomview.h
@@ -17,6 +17,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#ifndef GEOMVIEW_H
+#define GEOMVIEW_H
+
typedef struct W_GeometryView WGeometryView;
@@ -27,7 +30,4 @@ void WSetGeometryViewShownPosition(WGeometryView *gview, int
x, int y);
void WSetGeometryViewShownSize(WGeometryView *gview,
unsigned width, unsigned height);
-
-
-
-
+#endif /* GEOMVIEW_H */
diff --git a/src/placement.h b/src/placement.h
index 5f7a907..e9bfed8 100644
--- a/src/placement.h
+++ b/src/placement.h
@@ -20,6 +20,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#ifndef PLACEMENT_H
+#define PLACEMENT_H
+
void PlaceIcon(WScreen *scr, int *x_ret, int *y_ret, int head);
/* Computes the intersecting length of two line sections */
@@ -32,3 +35,5 @@ void PlaceWindow(WWindow *wwin, int *x_ret, int *y_ret,
unsigned width, unsigned
/* Set the points x and y inside the screen */
void get_right_position_on_screen(WScreen *scr, int *x, int *y, int size_x,
int size_y);
+
+#endif /* PLACEMENT_H */
diff --git a/src/shutdown.h b/src/shutdown.h
index a88398f..bb29b39 100644
--- a/src/shutdown.h
+++ b/src/shutdown.h
@@ -19,6 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA.
*/
+#ifndef SHUTDOWN_H
+#define SHUTDOWN_H
+
/* shutdown modes */
typedef enum {
WSExitMode,
@@ -29,3 +32,5 @@ typedef enum {
void Shutdown(WShutdownMode mode);
void RestoreDesktop(WScreen *scr);
+
+#endif /* SHUTDOWN_H */
diff --git a/util/wmmenugen.h b/util/wmmenugen.h
index 54a162d..cdefbe9 100644
--- a/util/wmmenugen.h
+++ b/util/wmmenugen.h
@@ -18,6 +18,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#ifndef WMMENUGEN_H
+#define WMMENUGEN_H
+
#include <WINGs/WUtil.h>
#include "../src/wconfig.h"
@@ -59,3 +62,4 @@ void parse_xdg(const char *file, void
(*addWMMenuEntryCallback)(WMMenuEntry *aEn
void parse_wmconfig(const char *file, void
(*addWMMenuEntryCallback)(WMMenuEntry *aEntry));
Bool wmconfig_validate_file(const char *filename, const struct stat *st, int
tflags, struct FTW *ftw);
+#endif /* WMMENUGEN_H */
--
1.7.10.4
--
To unsubscribe, send mail to [email protected].