Re: CVS imlib gdk_private_imlib.h problem
- From: "Gary V. Vaughan" <gvaughan oranda demon co uk>
- To: "Brandon S. Allbery" <allbery ece cmu edu>
- CC: gnome-list gnome org
- Subject: Re: CVS imlib gdk_private_imlib.h problem
- Date: Wed, 13 Jan 1999 14:26:12 +0000
"Brandon S. Allbery" wrote:
>
> It's not guarded against multiple includes, so imlib compile dies
> with redeclared structures and such.
This would be a better patch, to prevent include loops, also IIRC
underscore prefixes are reserved namespace for the preprocessor
(defining the guard macro to 1 is just incase we test it with just #if
instead of #ifdef at some point):
Cheers,
Gary V. Vaughan
Index: gdk_imlib/gdk_imlib_private.h
===================================================================
RCS file: /cvs/gnome/imlib/gdk_imlib/gdk_imlib_private.h,v
retrieving revision 1.26
diff -u -r1.26 gdk_imlib_private.h
--- gdk_imlib_private.h 1999/01/12 22:30:12 1.26
+++ gdk_imlib_private.h 1999/01/13 13:09:51
@@ -1,3 +1,5 @@
+#ifndef GDK_IMLIB_PRIVATE_H
+#define GDK_IMLIB_PRIVATE_H 1
+
#ifndef CONVERT_PATH
#define CONVERT_PATH "/usr/local/bin"
#endif
@@ -226,3 +228,6 @@
typedef GdkImlibImage *(*gdk_imlib_load_alpha_fn)(char *file);
extern gdk_imlib_load_alpha_fn _gdk_imlib_load_alpha_png;
+
+#endif /* GDK_IMLIB_PRIVATE_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]