blob: 174c21973cac322a1f88ec4790f3659b1b389f4e [file] [log] [blame]
Jim Cownie5e8470a2013-09-27 10:38:44 +00001/*
Jonathan Peytonde4749b2016-12-14 23:01:24 +00002 * kmp_ftn_stdcall.cpp -- Fortran __stdcall 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"
14
15// Note: This string is not printed when KMP_VERSION=1.
Jonathan Peyton30419822017-05-12 18:01:32 +000016char const __kmp_version_ftnstdcall[] =
17 KMP_VERSION_PREFIX "Fortran __stdcall OMP support: "
Jim Cownie5e8470a2013-09-27 10:38:44 +000018#ifdef USE_FTN_STDCALL
Jonathan Peyton30419822017-05-12 18:01:32 +000019 "yes";
Jim Cownie5e8470a2013-09-27 10:38:44 +000020#else
Jonathan Peyton30419822017-05-12 18:01:32 +000021 "no";
Jim Cownie5e8470a2013-09-27 10:38:44 +000022#endif
23
24#ifdef USE_FTN_STDCALL
25
Jonathan Peyton30419822017-05-12 18:01:32 +000026#define FTN_STDCALL KMP_STDCALL
27#define KMP_FTN_ENTRIES USE_FTN_STDCALL
Jim Cownie5e8470a2013-09-27 10:38:44 +000028
Jim Cownie5e8470a2013-09-27 10:38:44 +000029#include "kmp_ftn_entry.h"
Jonathan Peyton30419822017-05-12 18:01:32 +000030#include "kmp_ftn_os.h"
Jim Cownie5e8470a2013-09-27 10:38:44 +000031
32#endif /* USE_FTN_STDCALL */