aboutsummaryrefslogtreecommitdiff
path: root/src/fortran.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fortran.h')
-rw-r--r--src/fortran.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/fortran.h b/src/fortran.h
new file mode 100644
index 0000000..65442c8
--- /dev/null
+++ b/src/fortran.h
@@ -0,0 +1,23 @@
+/* $Header$ */
+
+#ifndef FORTRAN_H
+#define FORTRAN_H
+
+#include "cctk.h"
+
+#if FORTRAN_CPP_ANSI
+/* For an ANSI-like cpp */
+
+#define CONCAT(a,b) a##b
+#define STRINGIFY(a) STRINGIFY_(a)
+#define STRINGIFY_(a) #a
+
+#else
+/* For a traditional cpp */
+
+#define CONCAT(a,b) a/**/b
+#define STRINGIFY(a) "a"
+
+#endif
+
+#endif /* #ifdef FORTRAN_H */