mirror of https://github.com/XEphem/XEphem.git
Fix #73: resolve strptime() implicit declaration
This silences the compiler warning: ``` sunmenu.c: In function ‘readSOHOImage’: sunmenu.c:926:3: warning: implicit declaration of function ‘strptime’; did you mean ‘strftime’? [-Wimplicit-function-declaration] 926 | strptime(buf+20, "%d %b %Y %H:%M:%S %Z", &tm); ```
This commit is contained in:
parent
b035e69540
commit
30e14f685e
|
|
@ -1,6 +1,9 @@
|
|||
/* code to manage the sun display
|
||||
*/
|
||||
|
||||
/* For the declaration of strptime in <time.h>. */
|
||||
#define _XOPEN_SOURCE
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
|
|
|
|||
Loading…
Reference in New Issue