Skip to content

Commit a6585b0

Browse files
authored
[flang] Add header includes to make headers compile standalone. (#158215)
When compiling headers standalone, we need additional header includes.
1 parent f7985df commit a6585b0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

flang-rt/lib/runtime/complex-reduction.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "flang/Common/float128.h"
1818
#include "flang/Runtime/entry-names.h"
1919
#include <complex.h>
20+
#include <stdbool.h>
2021

2122
struct CppDescriptor; /* dummy type name for Fortran::runtime::Descriptor */
2223

flang/include/flang/Runtime/freestanding-tools.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "flang/Runtime/c-or-cpp.h"
1414
#include <algorithm>
1515
#include <cctype>
16+
#include <cstdlib>
1617
#include <cstring>
1718

1819
// The file defines a set of utilities/classes that might be

0 commit comments

Comments
 (0)