blob: 74b3e96ab300390324280ce4e66c200fb3f56e17 [file] [log] [blame]
Jim Cownie5e8470a2013-09-27 10:38:44 +00001/*
Jonathan Peytonde4749b2016-12-14 23:01:24 +00002 * kmp_ftn_extra.cpp -- Fortran 'extra' linkage support for OpenMP.
Jim Cownie5e8470a2013-09-27 10:38:44 +00003 */
4
Jim Cownie5e8470a2013-09-27 10:38:44 +00005//===----------------------------------------------------------------------===//
6//
Chandler Carruth57b08b02019-01-19 10:56:40 +00007// 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
Jim Cownie5e8470a2013-09-27 10:38:44 +000010//
11//===----------------------------------------------------------------------===//
12
Jim Cownie5e8470a2013-09-27 10:38:44 +000013#include "kmp.h"
Jonathan Peyton1cdd87a2016-11-14 21:08:35 +000014#include "kmp_affinity.h"
Jim Cownie5e8470a2013-09-27 10:38:44 +000015
Jim Cownie181b4bb2013-12-23 17:28:57 +000016#if KMP_OS_WINDOWS
Jonathan Peyton30419822017-05-12 18:01:32 +000017#define KMP_FTN_ENTRIES KMP_FTN_PLAIN
Jim Cownie181b4bb2013-12-23 17:28:57 +000018#elif KMP_OS_UNIX
Jonathan Peyton30419822017-05-12 18:01:32 +000019#define KMP_FTN_ENTRIES KMP_FTN_APPEND
Jim Cownie5e8470a2013-09-27 10:38:44 +000020#endif
21
Jim Cownie181b4bb2013-12-23 17:28:57 +000022// Note: This string is not printed when KMP_VERSION=1.
Jonathan Peyton30419822017-05-12 18:01:32 +000023char const __kmp_version_ftnextra[] =
24 KMP_VERSION_PREFIX "Fortran \"extra\" OMP support: "
Jim Cownie181b4bb2013-12-23 17:28:57 +000025#ifdef KMP_FTN_ENTRIES
Jonathan Peyton30419822017-05-12 18:01:32 +000026 "yes";
27#define FTN_STDCALL /* nothing to do */
28#include "kmp_ftn_os.h"
29#include "kmp_ftn_entry.h"
Jim Cownie181b4bb2013-12-23 17:28:57 +000030#else
Jonathan Peyton30419822017-05-12 18:01:32 +000031 "no";
Jim Cownie181b4bb2013-12-23 17:28:57 +000032#endif /* KMP_FTN_ENTRIES */