Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 1 | /* |
| 2 | * kmp_ftn_cdecl.c -- Fortran __cdecl linkage support for OpenMP. |
Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 3 | */ |
| 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" |
| 17 | |
Jim Cownie | 181b4bb | 2013-12-23 17:28:57 +0000 | [diff] [blame] | 18 | #if KMP_OS_WINDOWS |
Jonathan Peyton | 9901699 | 2015-05-26 17:32:53 +0000 | [diff] [blame] | 19 | # if defined KMP_WIN_CDECL || !defined KMP_DYNAMIC_LIB |
Jim Cownie | 181b4bb | 2013-12-23 17:28:57 +0000 | [diff] [blame] | 20 | # define KMP_FTN_ENTRIES KMP_FTN_UPPER |
| 21 | # endif |
| 22 | #elif KMP_OS_UNIX |
| 23 | # define KMP_FTN_ENTRIES KMP_FTN_PLAIN |
Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 24 | #endif |
| 25 | |
Jim Cownie | 181b4bb | 2013-12-23 17:28:57 +0000 | [diff] [blame] | 26 | // Note: This string is not printed when KMP_VERSION=1. |
| 27 | char const __kmp_version_ftncdecl[] = KMP_VERSION_PREFIX "Fortran __cdecl OMP support: " |
| 28 | #ifdef KMP_FTN_ENTRIES |
| 29 | "yes"; |
| 30 | # define FTN_STDCALL /* no stdcall */ |
| 31 | # include "kmp_ftn_os.h" |
| 32 | # include "kmp_ftn_entry.h" |
| 33 | #else |
| 34 | "no"; |
| 35 | #endif /* KMP_FTN_ENTRIES */ |