aboutsummaryrefslogtreecommitdiff
path: root/science/netcdf4/files
diff options
context:
space:
mode:
authorBeech Rintoul <beech@FreeBSD.org>2008-08-07 08:29:49 +0000
committerBeech Rintoul <beech@FreeBSD.org>2008-08-07 08:29:49 +0000
commit6546605e6be71bce9cf2f488b5c96e903b6a25ab (patch)
tree05180e03c9f3a7bb0d891302284b8cc771518139 /science/netcdf4/files
parentff57c42264d18020660152029484df359e2dc00f (diff)
Notes
Diffstat (limited to 'science/netcdf4/files')
-rw-r--r--science/netcdf4/files/patch-fortran+cfortran.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/science/netcdf4/files/patch-fortran+cfortran.h b/science/netcdf4/files/patch-fortran+cfortran.h
new file mode 100644
index 000000000000..e3baf9ec0e9b
--- /dev/null
+++ b/science/netcdf4/files/patch-fortran+cfortran.h
@@ -0,0 +1,21 @@
+--- fortran/cfortran.h.orig 2008-07-23 21:47:30.000000000 -0500
++++ fortran/cfortran.h 2008-07-23 21:48:50.000000000 -0500
+@@ -134,7 +134,8 @@
+ /* Split #if into 2 because some HP-UX can't handle long #if */
+ #if !(defined(NAGf90Fortran)||defined(f2cFortran)||defined(hpuxFortran)||defined(apolloFortran)||defined(sunFortran)||defined(IBMR2Fortran)||defined(CRAYFortran)||defined(PATHSCALE_COMPILER)||defined(gFortran))
+ #if !(defined(mipsFortran)||defined(DECFortran)||defined(vmsFortran)||defined(CONVEXFortran)||defined(PowerStationFortran)||defined(AbsoftUNIXFortran)||defined(AbsoftProFortran)||defined(SXFortran))
+-/* If your compiler barfs on ' #error', replace # with the trigraph for # */
++#define f2cFortran
++/* If your compiler barfs on ' #error', replace # with the trigraph for #
+ #error "cfortran.h: Can't find your environment among:\
+ - MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...) \
+ - IBM AIX XL C and FORTRAN Compiler/6000 Version 01.01.0000.0000 \
+@@ -158,7 +159,7 @@
+ - Absoft Pro Fortran: Use #define AbsoftProFortran \
+ - Portland Group Fortran: Use #define pgiFortran \
+ - PathScale Fortran: Use #define PATHSCALE_COMPILER"
+-/* Compiler must throw us out at this point! */
++ Compiler must throw us out at this point! */
+ #endif
+ #endif
+