diff --git a/montecarlo/eg/inc/cfortran.h b/montecarlo/eg/inc/cfortran.h index dfb5de4a222c0734090d235ef23a66599c311fc1..29c6c21d6f800339aca87d24bcf8a720fbe76700 100644 --- a/montecarlo/eg/inc/cfortran.h +++ b/montecarlo/eg/inc/cfortran.h @@ -357,7 +357,11 @@ only C calling FORTRAN subroutines will work using K&R style.*/ #ifndef apolloFortran /* "extern" removed (CFITSIO) */ +#ifdef __APPLE__ +#define COMMON_BLOCK_DEF(DEFINITION, NAME) extern DEFINITION NAME +#else #define COMMON_BLOCK_DEF(DEFINITION, NAME) /* extern */ DEFINITION NAME +#endif #define CF_NULL_PROTO #else /* HP doesn't understand #elif. */ /* Without ANSI prototyping, Apollo promotes float functions to double. */