Fix C++ math.h include order issue

Fixes #1257
This commit is contained in:
Justine Tunney 2024-12-13 07:49:59 -08:00
parent 2d43d400c6
commit 838b54f906
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
#ifndef _COMPLEX_H #ifndef _COMPLEX_H
#define _COMPLEX_H #define _COMPLEX_H
#include <math.h>
#include "libc/complex.h" #include "libc/complex.h"
#include "libc/imag.h" #include "libc/imag.h"
#include "libc/math.h"
#endif /* _COMPLEX_H */ #endif /* _COMPLEX_H */

View file

@ -1,5 +1,5 @@
#ifndef _FLOAT_H #ifndef _FLOAT_H
#define _FLOAT_H #define _FLOAT_H
#include "libc/math.h" #include <math.h>
#include "libc/runtime/fenv.h" #include "libc/runtime/fenv.h"
#endif /* _FLOAT_H */ #endif /* _FLOAT_H */