diff --git a/component.xml b/component.xml index 4997e0e..b61d526 100644 --- a/component.xml +++ b/component.xml @@ -3,7 +3,7 @@ - 0.1.2 + 0.1.3 libraries/pal Position Astronomy Library

diff --git a/configure.ac b/configure.ac index b70f85f..78238bc 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script AC_REVISION($Revision: 27534 $) dnl Initialisation: package name and version number -AC_INIT(pal, 0.1.2, stardev@jiscmail.ac.uk) +AC_INIT(pal, 0.1.3, stardev@jiscmail.ac.uk) dnl Require autoconf-2.50 at least AC_PREREQ(2.50) diff --git a/palDfltin.c b/palDfltin.c index 0e8ddaa..ce1a503 100644 --- a/palDfltin.c +++ b/palDfltin.c @@ -62,6 +62,8 @@ * Initial version based on strtod * 2012-06-21 (TIMJ): * Provide a backup for missing copysign. +* 2012-06-22 (TIMJ): +* Check __STDC_VERSION__ * {enter_further_changes_here} * Copyright: @@ -89,14 +91,23 @@ *- */ -#if HAVE_CONFIG_H -#include -#endif - /* Shenanigans for isblank() which is C99 only */ #define _POSIX_C_SOURCE 200112L #define _ISOC99_SOURCE +/* Use the config file if we have one, else look at + compiler defines to see if we have C99 */ +#if HAVE_CONFIG_H +#include +#else +#ifdef __STDC_VERSION__ +# if (__STDC_VERSION__ >= 199901L) +# define HAVE_COPYSIGN 1 +# endif +#endif +#endif + +/* System include files */ #include #include #include diff --git a/palPertue.c b/palPertue.c index 730e9fd..b884a36 100644 --- a/palPertue.c +++ b/palPertue.c @@ -153,6 +153,8 @@ * Initial version direct conversion of SLA/F. * 2012-06-21 (TIMJ): * Support a lack of copysign() function. +* 2012-06-22 (TIMJ): +* Check __STDC_VERSION__ * {enter_further_changes_here} * Copyright: @@ -180,8 +182,16 @@ *- */ +/* Use the config file if we have one, else look at + compiler defines to see if we have C99 */ #if HAVE_CONFIG_H #include +#else +#ifdef __STDC_VERSION__ +# if (__STDC_VERSION__ >= 199901L) +# define HAVE_COPYSIGN 1 +# endif +#endif #endif #include