aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.h b/common.h
index 6f38731..7abe91a 100644
--- a/common.h
+++ b/common.h
@@ -14,6 +14,9 @@
/* common-birthday.c */
+#if defined(__GNUC__) || defined(__clang__)
+__attribute__((__pure__))
+#endif
int get_age(struct libcontacts_birthday *bday, const struct tm *now);
void print_birthdate(struct libcontacts_birthday *bday, const struct tm *now);
void print_birthday(struct libcontacts_birthday *bday, const struct tm *now);