Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * kmp_ftn_cdecl.c -- Fortran __cdecl linkage support for OpenMP. |
| 3 | * $Revision: 42061 $ |
| 4 | * $Date: 2013-02-28 16:36:24 -0600 (Thu, 28 Feb 2013) $ |
| 5 | */ |
| 6 | |
| 7 | |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // The LLVM Compiler Infrastructure |
| 11 | // |
| 12 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 13 | // Source Licenses. See LICENSE.txt for details. |
| 14 | // |
| 15 | //===----------------------------------------------------------------------===// |
| 16 | |
| 17 | |
| 18 | #include "kmp.h" |
| 19 | |
| 20 | // Note: This string is not printed when KMP_VERSION=1. |
| 21 | char const __kmp_version_ftncdecl[] = KMP_VERSION_PREFIX "Fortran __cdecl OMP support: " |
| 22 | #ifdef USE_FTN_CDECL |
| 23 | "yes"; |
| 24 | #else |
| 25 | "no"; |
| 26 | #endif |
| 27 | |
| 28 | #ifdef USE_FTN_CDECL |
| 29 | |
| 30 | #define FTN_STDCALL /* no stdcall */ |
| 31 | #define KMP_FTN_ENTRIES USE_FTN_CDECL |
| 32 | |
| 33 | #include "kmp_ftn_os.h" |
| 34 | #include "kmp_ftn_entry.h" |
| 35 | |
| 36 | #endif /* USE_FTN_CDECL */ |
| 37 | |