FLANG
ISO_Fortran_binding_wrapper.h
1/*===-- include/flang/Common/ISO_Fortran_binding_wrapper.h --------*- C++ -*-===
2 *
3 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 * See https://llvm.org/LICENSE.txt for license information.
5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 *
7 *===----------------------------------------------------------------------===*/
8
9#ifndef FORTRAN_COMMON_ISO_FORTRAN_BINDING_WRAPPER_H_
10#define FORTRAN_COMMON_ISO_FORTRAN_BINDING_WRAPPER_H_
11
12/* A thin wrapper around flang/include/ISO_Fortran_binding.h
13 * This header file must be included when ISO_Fortran_binding.h
14 * definitions/declarations are needed in Flang compiler/runtime
15 * sources. The inclusion of Common/api-attrs.h below sets up
16 * proper values for the macros used in ISO_Fortran_binding.h
17 * for the device offload builds.
18 * flang/include/ISO_Fortran_binding.h is made a standalone
19 * header file so that it can be used on its own in users'
20 * C/C++ programs.
21 */
22
23/* clang-format off */
24#include <stddef.h>
25#include "api-attrs.h"
26#ifdef __cplusplus
27namespace Fortran {
28namespace ISO {
29#define FORTRAN_ISO_NAMESPACE_ ::Fortran::ISO
30#endif /* __cplusplus */
31#include "flang/ISO_Fortran_binding.h"
32#ifdef __cplusplus
33} // namespace ISO
34} // namespace Fortran
35#endif /* __cplusplus */
36/* clang-format on */
37
38#endif /* FORTRAN_COMMON_ISO_FORTRAN_BINDING_WRAPPER_H_ */
Definition bit-population-count.h:20