Procházet zdrojové kódy

protect types.h against multiple inclusions

ceriel před 34 roky
rodič
revize
aae0eeca94
2 změnil soubory, kde provedl 12 přidání a 0 odebrání
  1. 6 0
      include/_tail_cc/sys/types.h
  2. 6 0
      include/_tail_mon/sys/types.h

+ 6 - 0
include/_tail_cc/sys/types.h

@@ -3,6 +3,10 @@
  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  * See the copyright notice in the ACK home directory, in the file "Copyright".
  */
+
+#ifndef __TYPES_H__
+#define __TYPES_H__
+
 /*
  * Basic system types and major/minor device constructing/busting macros.
  */
@@ -43,3 +47,5 @@ typedef unsigned char	uchar_t;
 typedef short		cnt_t;
 typedef long		paddr_t;
 typedef long		key_t;
+
+#endif /* __TYPES_H__ */

+ 6 - 0
include/_tail_mon/sys/types.h

@@ -3,6 +3,10 @@
  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  * See the copyright notice in the ACK home directory, in the file "Copyright".
  */
+
+#ifndef __TYPES_H__
+#define __TYPES_H__
+
 /*
  * Basic system types and major/minor device constructing/busting macros.
  */
@@ -43,3 +47,5 @@ typedef unsigned char	uchar_t;
 typedef short		cnt_t;
 typedef long		paddr_t;
 typedef long		key_t;
+
+#endif /* __TYPES_H__ */