summaryrefslogtreecommitdiff
path: root/Modules/FortranCInterface/mymodule_.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/FortranCInterface/mymodule_.c')
-rw-r--r--Modules/FortranCInterface/mymodule_.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/FortranCInterface/mymodule_.c b/Modules/FortranCInterface/mymodule_.c
index a7152afad5..b5feda6cef 100644
--- a/Modules/FortranCInterface/mymodule_.c
+++ b/Modules/FortranCInterface/mymodule_.c
@@ -1,2 +1,8 @@
+#if defined(__PATHSCALE__)
+/* PathScale Fortran wants mymodule_ when calling any mymodule symbol,
+ but module symbols use '.in.' so we cannot provide them anyway. */
+void pathscale_mymodule_(void) {}
+#else
/* PGI Fortran wants mymodule_ when calling any mymodule symbol. */
void mymodule_(void) {}
+#endif