summaryrefslogtreecommitdiffstats
path: root/fortran/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-12-17 02:27:41 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-12-17 02:27:41 (GMT)
commit5387f65eef42ba904c60a223b12e63b5c0743d55 (patch)
treee8e98dcfd9d3ed7a929dba4a3c75fe624cef4ba4 /fortran/src
parent1205c5753159b90bc47fd270a00a4d118a18b4e2 (diff)
downloadhdf5-5387f65eef42ba904c60a223b12e63b5c0743d55.zip
hdf5-5387f65eef42ba904c60a223b12e63b5c0743d55.tar.gz
hdf5-5387f65eef42ba904c60a223b12e63b5c0743d55.tar.bz2
[svn-r9684] Purpose:
Port Description: Initial work for supporting GNU FORTRAN/F95 on FreeBSD. I think I've got things mostly set up correctly, but I'm getting an internal compiler error on one of the FORTRAN sources, so I'm not going to add this configuration to the daily tests yet. Platforms tested: FreeBSD 4.10 (sleipnir) w/GNU FORTRAN Not tested in h5committest
Diffstat (limited to 'fortran/src')
-rw-r--r--fortran/src/H5f90i.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/fortran/src/H5f90i.h b/fortran/src/H5f90i.h
index 996a143..1eb6480 100644
--- a/fortran/src/H5f90i.h
+++ b/fortran/src/H5f90i.h
@@ -193,6 +193,37 @@ typedef float real_f;
#endif /*WINDOWS */
+/* FreeBSD definitions */
+#if (defined(__FreeBSD) || defined(__FreeBSD__))
+
+/* Common definitions */
+typedef char *_fcd;
+typedef int int_f;
+typedef int hid_t_f;
+typedef float real_f;
+#define _fcdtocp(desc) (desc)
+
+/* IA32 specific definitions */
+#if (defined(i386) || defined(__i386) || defined(__i386__))
+typedef long long hsize_t_f;
+typedef long long hssize_t_f;
+typedef int size_t_f;
+/* AMD64 specific definitions */
+#elif defined __x86_64__
+typedef long long hsize_t_f;
+typedef long long hssize_t_f;
+typedef int size_t_f;
+/* IA64 specific definitions */
+#elif defined __ia64
+typedef long hsize_t_f;
+typedef long hssize_t_f;
+typedef long size_t_f;
+#endif /* IA64 */
+
+#define FNAME_POST_UNDERSCORE
+
+#endif /* FreeBSD */
+
/*----------------------------------------------------------------
** MACRO FNAME for any fortran callable routine name.
**