blob: ec8d77ee411f598f77a8439c7ad99f870857e437 [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
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"
Jonathan Peyton1cdd87a2016-11-14 21:08:35 +000015#include "kmp_affinity.h"
Jim Cownie5e8470a2013-09-27 10:38:44 +000016
Jim Cownie181b4bb2013-12-23 17:28:57 +000017#if KMP_OS_WINDOWS
Jonathan Peyton30419822017-05-12 18:01:32 +000018#if defined KMP_WIN_CDECL || !defined KMP_DYNAMIC_LIB
19#define KMP_FTN_ENTRIES KMP_FTN_UPPER
20#endif
Jim Cownie181b4bb2013-12-23 17:28:57 +000021#elif KMP_OS_UNIX
Jonathan Peyton30419822017-05-12 18:01:32 +000022#define KMP_FTN_ENTRIES KMP_FTN_PLAIN
Jim Cownie5e8470a2013-09-27 10:38:44 +000023#endif
24
Jim Cownie181b4bb2013-12-23 17:28:57 +000025// Note: This string is not printed when KMP_VERSION=1.
Jonathan Peyton30419822017-05-12 18:01:32 +000026char const __kmp_version_ftncdecl[] =
27 KMP_VERSION_PREFIX "Fortran __cdecl OMP support: "
Jim Cownie181b4bb2013-12-23 17:28:57 +000028#ifdef KMP_FTN_ENTRIES
Jonathan Peyton30419822017-05-12 18:01:32 +000029 "yes";
30#define FTN_STDCALL /* no stdcall */
31#include "kmp_ftn_os.h"
32#include "kmp_ftn_entry.h"
Jim Cownie181b4bb2013-12-23 17:28:57 +000033#else
Jonathan Peyton30419822017-05-12 18:01:32 +000034 "no";
Jim Cownie181b4bb2013-12-23 17:28:57 +000035#endif /* KMP_FTN_ENTRIES */