aboutsummaryrefslogtreecommitdiffstats
path: root/date.h
diff options
context:
space:
mode:
authorEl-BG-1970 <elouangros@hotmail.com>2023-02-05 11:48:36 +0100
committerEl-BG-1970 <elouangros@hotmail.com>2023-02-05 11:48:36 +0100
commita565247c8e000482a4136a4e0f5bd113102a6d65 (patch)
tree056db839983797dd7795060e58b66a6ca3b3d3a4 /date.h
parentc599aaf883472686fa2871ec48905b114c783180 (diff)
downloadorg-to-conky-a565247c8e000482a4136a4e0f5bd113102a6d65.tar.gz
added checks, moved from defines to pragma in header files
Diffstat (limited to 'date.h')
-rw-r--r--date.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/date.h b/date.h
index b692d48..5adfc46 100644
--- a/date.h
+++ b/date.h
@@ -1,4 +1,4 @@
-#ifndef __DATE_H__
+#pragma once
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
@@ -28,11 +28,8 @@ void print_date(Date date);
char *print_date_to_string(Date date);
char *short_date_to_string(Date date);
-Date today();
+Date today(void);
Date tomorrow(Date td);
Date nextweek(Date td);
Date nextmonth(Date td);
Date nextmonday(Date td);
-
-#define __DATE_H__
-#endif