1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
Description: Fix C99 compatibility issue
Origin: https://github.com/arabeyes-org/ITL/commit/b902a81f58a4d5fe598be1b1932144128ccc5194
Author: DJ Delorie <dj@redhat.com>
diff --git a/hijri/hijri.c b/hijri/hijri.c
index 2ad7492..f3ca907 100644
--- a/hijri/hijri.c
+++ b/hijri/hijri.c
@@ -96,6 +96,10 @@ char *h_month_short[13] = {"skip",
"Ram", "Sha", "Qid", "Hij"};
+/* Forward declarations for C99 compatibility. */
+int g_absolute(int day, int month, int year);
+int g_numdays(int month, int year);
+
/* Store-off any events for passed-in date */
int
get_events(char ***addr_event,
diff --git a/hijri/umm_alqura.c b/hijri/umm_alqura.c
index 085518e..42583a3 100644
--- a/hijri/umm_alqura.c
+++ b/hijri/umm_alqura.c
@@ -68,6 +68,11 @@ double ip(double x);
int mod(double x, double y);
int IsValid(int yh, int mh, int dh);
+int fill_datestruct(sDate *fdate, int weekday, int frm_month_num,
+ int to_month_num, char *frm_day[], char *frm_day_short[],
+ char *frm_month[], char *frm_month_short[], char *to_day[],
+ char *to_day_short[], char *to_month[],
+ char *to_month_short[], sEvent *farr_table, int farr_size);
/****************************************************************************/
/* Name: Hsub2G */
|