[flang-commits] [flang] a6585b0 - [flang] Add header includes to make headers compile standalone. (#158215)

via flang-commits flang-commits at lists.llvm.org
Mon Sep 15 08:54:59 PDT 2025


Author: Adrian Kuegel
Date: 2025-09-15T17:54:56+02:00
New Revision: a6585b0cc4c135d4a4aed064383be01ad5551b42

URL: https://github.com/llvm/llvm-project/commit/a6585b0cc4c135d4a4aed064383be01ad5551b42
DIFF: https://github.com/llvm/llvm-project/commit/a6585b0cc4c135d4a4aed064383be01ad5551b42.diff

LOG: [flang] Add header includes to make headers compile standalone. (#158215)

When compiling headers standalone, we need additional header includes.

Added: 
    

Modified: 
    flang-rt/lib/runtime/complex-reduction.h
    flang/include/flang/Runtime/freestanding-tools.h

Removed: 
    


################################################################################
diff  --git a/flang-rt/lib/runtime/complex-reduction.h b/flang-rt/lib/runtime/complex-reduction.h
index 44c52fb02fa43..43854462496df 100644
--- a/flang-rt/lib/runtime/complex-reduction.h
+++ b/flang-rt/lib/runtime/complex-reduction.h
@@ -17,6 +17,7 @@
 #include "flang/Common/float128.h"
 #include "flang/Runtime/entry-names.h"
 #include <complex.h>
+#include <stdbool.h>
 
 struct CppDescriptor; /* dummy type name for Fortran::runtime::Descriptor */
 

diff  --git a/flang/include/flang/Runtime/freestanding-tools.h b/flang/include/flang/Runtime/freestanding-tools.h
index 6753b7a24ebe1..7ef7cc74f213b 100644
--- a/flang/include/flang/Runtime/freestanding-tools.h
+++ b/flang/include/flang/Runtime/freestanding-tools.h
@@ -13,6 +13,7 @@
 #include "flang/Runtime/c-or-cpp.h"
 #include <algorithm>
 #include <cctype>
+#include <cstdlib>
 #include <cstring>
 
 // The file defines a set of utilities/classes that might be


        


More information about the flang-commits mailing list