1. Barry Schwartz
  2. odds_and_ends

Commits

Barry Schwartz  committed c62b8b8

Use <config.h> (from Fortran with C preprocessing)

  • Participants
  • Parent commits 8e84af7
  • Branches default

Comments (0)

Files changed (2)

File fortran/font/configure.ac

View file
  • Ignore whitespace
 # Checks for library functions.
 
 
+AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_FILES([Makefile package-not-yet-named.pc])
 AC_OUTPUT

File fortran/font/opentype_longdatetime.F90

View file
  • Ignore whitespace
 
 !--------------------------------------------------------------------------
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #ifndef SIZEOF_TIME_T
 #define SIZEOF_TIME_T 8
 #endif
   read(unit, pos=10) c
   print *, 9223372036854775807_ot_time_t, ' => ', int(c)
 
-  write(unit, pos=10) ot_longdatetime([0,0,0,0,0,0,0,0])
+  write(unit, pos=10) ot_longdatetime([0_int8,0_int8,0_int8,0_int8,0_int8,0_int8,0_int8,0_int8])
   read(unit, pos=10) c
-  print *, [0,0,0,0,0,0,0,0], ' => ', int(c)
+  print *, [0_int8,0_int8,0_int8,0_int8,0_int8,0_int8,0_int8,0_int8], ' => ', int(c)
 
   close(unit)