From 46c4664eeadcf6b5d3d1b4ef253d04afd45576a8 Mon Sep 17 00:00:00 2001 From: Bill-Gray Date: Mon, 13 Aug 2018 22:54:21 -0400 Subject: [PATCH] Certain functions really should have been declared as extern 'C' that weren't. --- jpleph.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/jpleph.h b/jpleph.h index 91d8b53..d9aed6c 100644 --- a/jpleph.h +++ b/jpleph.h @@ -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( ): */ @@ -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