Skip to contentSkip to conversation

: protect includes from re-included them

PATCH New Juan Quintela 1 participant 1 message Dec 18, 2002 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : protect includes from re-included them

Hi

        this included don't have the standard protection :(

Later, Juan.

Index: drivers/sgi/char/gconsole.h
===================================================================
RCS file: /home/cvs/linux/drivers/sgi/char/gconsole.h,v retrieving revision 1.5

sgi/char/gconsole.h +6 -0
diff -u -r1.5 gconsole.h
@@ -1,3 +1,7 @@
+#ifndef _SGI_GCONSOLE_H
+#define _SGI_GCONSOLE_H
+
+
 /*
  * This is a temporary measure, we should eventually migrate to
  * Gert's generic graphic console code.
@@ -31,3 +35,5 @@
 
 extern void disable_gconsole (void);
 extern void enable_gconsole (void);
+
+#endif /* _SGI_GCONSOLE */

Index: drivers/sgi/char/graphics.h
===================================================================
RCS file: /home/cvs/linux/drivers/sgi/char/graphics.h,v retrieving revision 1.9.6.1

sgi/char/graphics.h +5 -0
diff -u -r1.9.6.1 graphics.h
@@ -1,3 +1,6 @@
+#ifndef _SGI_GRAPHICS_H
+#define _SGI_GRAPHICS_H
+
 #define MAXCARDS 4
 
 struct graphics_ops {
@@ -25,3 +28,5 @@
 
 void shmiq_init (void);
 void streamable_init (void);
+
+#endif /* _SGI_GRAPHICS_H */
Signature · 2 lines
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy