Navigation Menu

Skip to content

Commit

Permalink
Certain functions really should have been declared as extern 'C' that…
Browse files Browse the repository at this point in the history
… weren't.
  • Loading branch information
Bill-Gray committed Aug 14, 2018
1 parent 8dec084 commit 46c4664
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions jpleph.h
Expand Up @@ -61,10 +61,6 @@ int DLL_FUNC make_sub_ephem( void *ephem, const char *sub_filename,
const double start_jd, const double end_jd);
double DLL_FUNC jpl_get_constant( const int idx, void *ephem, char *constant_name);

#ifdef __cplusplus
}
#endif

/* Following are constants used in */
/* jpl_get_double( ) and jpl_get_long( ): */

Expand Down Expand Up @@ -108,3 +104,8 @@ int DLL_FUNC jpl_init_error_code( void);
#define JPL_INIT_NOT_CALLED -9

#define jpl_get_pvsun( ephem) ((double *)((char *)ephem + 248))


#ifdef __cplusplus
}
#endif

0 comments on commit 46c4664

Please sign in to comment.