patch sunriset.c so we can avoid main function
This commit is contained in:
parent
86f9fdc5c2
commit
ddd6f3b61f
1 changed files with 5 additions and 1 deletions
|
|
@ -128,7 +128,10 @@ double GMST0( double d );
|
||||||
|
|
||||||
/* A small test program */
|
/* A small test program */
|
||||||
|
|
||||||
main()
|
#ifdef SUNRISET_NO_MAIN
|
||||||
|
int sunriset_test_main(void) { return 0; }
|
||||||
|
#else
|
||||||
|
int main(void)
|
||||||
{
|
{
|
||||||
int year,month,day;
|
int year,month,day;
|
||||||
double lon, lat;
|
double lon, lat;
|
||||||
|
|
@ -234,6 +237,7 @@ main()
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* The "workhorse" function for sun rise/set times */
|
/* The "workhorse" function for sun rise/set times */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue