patch sunriset.c so we can avoid main function

This commit is contained in:
Emil Lerch 2026-01-06 19:34:08 -08:00
parent 86f9fdc5c2
commit ddd6f3b61f
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -128,7 +128,10 @@ double GMST0( double d );
/* A small test program */
main()
#ifdef SUNRISET_NO_MAIN
int sunriset_test_main(void) { return 0; }
#else
int main(void)
{
int year,month,day;
double lon, lat;
@ -234,6 +237,7 @@ main()
return 0;
}
}
#endif
/* The "workhorse" function for sun rise/set times */