Skip to content

Commit bb5921e

Browse files
authored
[libc] Include FP_* macros in math.h (llvm#84996)
These are used unconditionally by libc++ math.h. This is related to issue llvm#84879.
1 parent 6411183 commit bb5921e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libc/include/llvm-libc-macros/math-macros.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111

1212
#include "limits-macros.h"
1313

14+
#define FP_NAN 0
15+
#define FP_INFINITE 1
16+
#define FP_ZERO 2
17+
#define FP_SUBNORMAL 3
18+
#define FP_NORMAL 4
19+
1420
#define MATH_ERRNO 1
1521
#define MATH_ERREXCEPT 2
1622

0 commit comments

Comments
 (0)