2 * kmp_ftn_cdecl.cpp -- Fortran __cdecl linkage support for OpenMP.
5 //===----------------------------------------------------------------------===//
7 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
8 // See https://llvm.org/LICENSE.txt for license information.
9 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
11 //===----------------------------------------------------------------------===//
14 #include "kmp_affinity.h"
17 #if defined KMP_WIN_CDECL || !KMP_DYNAMIC_LIB
18 #define KMP_FTN_ENTRIES KMP_FTN_UPPER
21 #define KMP_FTN_ENTRIES KMP_FTN_PLAIN
24 // Note: This string is not printed when KMP_VERSION=1.
25 char const __kmp_version_ftncdecl
[] =
26 KMP_VERSION_PREFIX
"Fortran __cdecl OMP support: "
27 #ifdef KMP_FTN_ENTRIES
29 #define FTN_STDCALL /* no stdcall */
30 #include "kmp_ftn_os.h"
31 #include "kmp_ftn_entry.h"
34 #endif /* KMP_FTN_ENTRIES */