Bug 449 – frontend: html.h and complex_t.h are unprotected against multiple inclusion
Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-10-24T06:27:00Z
Last change time
2014-02-15T13:20:23Z
Keywords
patch
Assigned to
bugzilla
Creator
thomas-dloop
Comments
Comment #0 by thomas-dloop — 2006-10-24T06:27:51Z
=== complex_t.h
==================================================================
--- complex_t.h (revision 2008)
+++ complex_t.h (local)
@@ -11,6 +11,9 @@
/* Roll our own complex type for compilers that don't support complex
*/
+#ifndef DMD_COMPLEX_T_H
+#define DMD_COMPLEX_T_H
+
struct complex_t
{
long double re;
@@ -68,4 +71,4 @@
return x.im;
}
-
+#endif
=== html.h
==================================================================
--- html.h (revision 2008)
+++ html.h (local)
@@ -8,6 +8,9 @@
// in artistic.txt, or the GNU General Public License in gnu.txt.
// See the included readme.txt for details.
+#ifndef DMD_HTML_H
+#define DMD_HTML_H
+
struct OutBuffer;
struct Html
@@ -36,3 +39,5 @@
int charEntity();
static int namedEntity(unsigned char *p, int length);
};
+
+#endif