Skip to content

Commit

Permalink
MIPS: math-emu: Harden ieee754int.h against multiple inclusion.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ralf Baechle committed May 21, 2014
1 parent 47fa0c0 commit bee1653
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/mips/math-emu/ieee754int.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*
* ########################################################################
*/

#ifndef __IEEE754INT_H
#define __IEEE754INT_H

#include "ieee754.h"

Expand Down Expand Up @@ -162,3 +163,5 @@
#define FLUSHYDP FLUSHDP(y, yc, ys, ye, ym)
#define FLUSHXSP FLUSHSP(x, xc, xs, xe, xm)
#define FLUSHYSP FLUSHSP(y, yc, ys, ye, ym)

#endif /* __IEEE754INT_H */

0 comments on commit bee1653

Please sign in to comment.