Selaa lähdekoodia

MIPS: math-emu: Harden ieee754int.h against multiple inclusion.

The header file had no include guards; this only happened to work because
the file only contains macro definitions and protypes.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 11 vuotta sitten
vanhempi
commit
bee1653593
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      arch/mips/math-emu/ieee754int.h

+ 4 - 1
arch/mips/math-emu/ieee754int.h

@@ -23,7 +23,8 @@
  *
  *
  * ########################################################################
  * ########################################################################
  */
  */
-
+#ifndef __IEEE754INT_H
+#define __IEEE754INT_H
 
 
 #include "ieee754.h"
 #include "ieee754.h"
 
 
@@ -162,3 +163,5 @@
 #define FLUSHYDP FLUSHDP(y, yc, ys, ye, ym)
 #define FLUSHYDP FLUSHDP(y, yc, ys, ye, ym)
 #define FLUSHXSP FLUSHSP(x, xc, xs, xe, xm)
 #define FLUSHXSP FLUSHSP(x, xc, xs, xe, xm)
 #define FLUSHYSP FLUSHSP(y, yc, ys, ye, ym)
 #define FLUSHYSP FLUSHSP(y, yc, ys, ye, ym)
+
+#endif /* __IEEE754INT_H  */