blob: a3c37796aa35c87d37d319b12b894a24eb400388 [file] [log] [blame]
Jim Cownie5e8470a2013-09-27 10:38:44 +00001/*
Jonathan Peytonde4749b2016-12-14 23:01:24 +00002 * kmp_ftn_cdecl.cpp -- Fortran __cdecl linkage support for OpenMP.
Jim Cownie5e8470a2013-09-27 10:38:44 +00003 */
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"
Jonathan Peyton1cdd87a2016-11-14 21:08:35 +000017#include "kmp_affinity.h"
Jim Cownie5e8470a2013-09-27 10:38:44 +000018
Jim Cownie181b4bb2013-12-23 17:28:57 +000019#if KMP_OS_WINDOWS
Jonathan Peyton99016992015-05-26 17:32:53 +000020# if defined KMP_WIN_CDECL || !defined KMP_DYNAMIC_LIB
Jim Cownie181b4bb2013-12-23 17:28:57 +000021# define KMP_FTN_ENTRIES KMP_FTN_UPPER
22# endif
23#elif KMP_OS_UNIX
24# define KMP_FTN_ENTRIES KMP_FTN_PLAIN
Jim Cownie5e8470a2013-09-27 10:38:44 +000025#endif
26
Jim Cownie181b4bb2013-12-23 17:28:57 +000027// Note: This string is not printed when KMP_VERSION=1.
28char const __kmp_version_ftncdecl[] = KMP_VERSION_PREFIX "Fortran __cdecl OMP support: "
29#ifdef KMP_FTN_ENTRIES
30 "yes";
31# define FTN_STDCALL /* no stdcall */
32# include "kmp_ftn_os.h"
33# include "kmp_ftn_entry.h"
34#else
35 "no";
36#endif /* KMP_FTN_ENTRIES */