aboutsummaryrefslogtreecommitdiffstats
path: root/src/solar.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/solar.h')
-rw-r--r--src/solar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/solar.h b/src/solar.h
index 389484e..56f7041 100644
--- a/src/solar.h
+++ b/src/solar.h
@@ -28,7 +28,7 @@
#define SOLAR_CIVIL_TWILIGHT_ELEV -6.0
#define SOLAR_DAYTIME_ELEV (0.0 - SOLAR_ATM_REFRAC)
-typedef enum {
+enum solar_time {
SOLAR_TIME_NOON = 0,
SOLAR_TIME_MIDNIGHT,
SOLAR_TIME_ASTRO_DAWN,
@@ -40,7 +40,7 @@ typedef enum {
SOLAR_TIME_NAUT_DUSK,
SOLAR_TIME_ASTRO_DUSK,
SOLAR_TIME_MAX
-} solar_time_t;
+};
double solar_elevation(double date, double lat, double lon);