LLVM OpenMP* Runtime Library
kmp_ftn_extra.cpp
1 /*
2  * kmp_ftn_extra.cpp -- Fortran 'extra' linkage support for OpenMP.
3  */
4 
5 
6 //===----------------------------------------------------------------------===//
7 //
8 // The LLVM Compiler Infrastructure
9 //
10 // This file is dual licensed under the MIT and the University of Illinois Open
11 // Source Licenses. See LICENSE.txt for details.
12 //
13 //===----------------------------------------------------------------------===//
14 
15 
16 #include "kmp.h"
17 #include "kmp_affinity.h"
18 
19 #if KMP_OS_WINDOWS
20 #define KMP_FTN_ENTRIES KMP_FTN_PLAIN
21 #elif KMP_OS_UNIX
22 #define KMP_FTN_ENTRIES KMP_FTN_APPEND
23 #endif
24 
25 // Note: This string is not printed when KMP_VERSION=1.
26 char const __kmp_version_ftnextra[] =
27  KMP_VERSION_PREFIX "Fortran \"extra\" OMP support: "
28 #ifdef KMP_FTN_ENTRIES
29  "yes";
30 #define FTN_STDCALL /* nothing to do */
31 #include "kmp_ftn_os.h"
32 #include "kmp_ftn_entry.h"
33 #else
34  "no";
35 #endif /* KMP_FTN_ENTRIES */