blob: ccf95f464ecd5a845a5642b9184cc691e37464e7 [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//
7// The LLVM Compiler Infrastructure
8//
9// This file is dual licensed under the MIT and the University of Illinois Open
10// Source Licenses. See LICENSE.txt for details.
11//
12//===----------------------------------------------------------------------===//
13
Jim Cownie5e8470a2013-09-27 10:38:44 +000014#include "kmp.h"
15
16// Note: This string is not printed when KMP_VERSION=1.
Jonathan Peyton30419822017-05-12 18:01:32 +000017char const __kmp_version_ftnstdcall[] =
18 KMP_VERSION_PREFIX "Fortran __stdcall OMP support: "
Jim Cownie5e8470a2013-09-27 10:38:44 +000019#ifdef USE_FTN_STDCALL
Jonathan Peyton30419822017-05-12 18:01:32 +000020 "yes";
Jim Cownie5e8470a2013-09-27 10:38:44 +000021#else
Jonathan Peyton30419822017-05-12 18:01:32 +000022 "no";
Jim Cownie5e8470a2013-09-27 10:38:44 +000023#endif
24
25#ifdef USE_FTN_STDCALL
26
Jonathan Peyton30419822017-05-12 18:01:32 +000027#define FTN_STDCALL KMP_STDCALL
28#define KMP_FTN_ENTRIES USE_FTN_STDCALL
Jim Cownie5e8470a2013-09-27 10:38:44 +000029
Jim Cownie5e8470a2013-09-27 10:38:44 +000030#include "kmp_ftn_entry.h"
Jonathan Peyton30419822017-05-12 18:01:32 +000031#include "kmp_ftn_os.h"
Jim Cownie5e8470a2013-09-27 10:38:44 +000032
33#endif /* USE_FTN_STDCALL */