Changes
2 changed files (+9/-6)
-
-
@@ -2,13 +2,15 @@ # sunwait# # 08/12/2014 IFC 0.6 No changes since 0.5 # 02/05/2015 IFC 0.7 No changes since 0.5, still # 10/03/2020 TLJ 0.9 Move headers to fix build on osx # C=gcc CFLAGS=-c -Wall LDFLAGS= -lm -lstdc++ SOURCES=sunwait.cpp sunriset.cpp print.cpp sunwait.h sunriset.h print.h SOURCES=sunwait.cpp sunriset.cpp print.cpp HEADERS=sunwait.h sunriset.h print.h OBJECTS=$(SOURCES:.cpp=.o) EXECUTABLE=sunwait
-
-
-
@@ -19,6 +19,7 @@ // I'm porting my home power control to Linux, so I've reworked the whole program to suit.// IFC 2014-12-08 0.6 Add timezone handling for output - if required // IFC 2015-04-29 0.7 Timezone and DST fixes - and for date line timings // IFC 2015-05-27 0.8 Resolve 'dodgy day' and cleanup // TLJ 2020-10-03 0.9 Fix build on osx // #include <stdio.h>
-
@@ -34,7 +35,7 @@ #include <windows.h>#endif // Linux #if defined __linux__ #if defined __linux__ || defined __APPLE__ #include <unistd.h> #endif
-
@@ -395,7 +396,7 @@ #endif/* Windows code: End */ /* Linux code: Start */ #if defined __linux__ #if defined __linux__ || defined __APPLE__ gmtime_r (pTimet, pTm); #endif /* Linux code: End */
-
@@ -415,7 +416,7 @@ #endif/* Windows code: End */ /* Linux code: Start */ #if defined __linux__ #if defined __linux__ || defined __APPLE__ localtime_r (pTimet, pTm); #endif /* Linux code: End */
-
@@ -477,7 +478,7 @@ #endif/* Windows code: End */ /* Linux code: Start */ #if defined __linux__ #if defined __linux__ || defined __APPLE__ char buffer [80]; signed long int tmpLong = 0;
-
@@ -1130,7 +1131,7 @@ #endif/* Windows code: End */ /* Linux code: Start */ #if defined __linux__ #if defined __linux__ || defined __APPLE__ sleep (waitSeconds); // Linux-only (seconds OK) #endif /* Linux code: End */
-