summaryrefslogtreecommitdiffstats
path: root/libc/include
diff options
context:
space:
mode:
authorFred Fettinger <fred.fettinger@motorola.com>2009-11-20 16:57:14 -0600
committerMike Lockwood <lockwood@android.com>2009-11-23 16:25:32 -0500
commitb5239ed16aeba648f1c9bcb7a4887b8a41670326 (patch)
tree54f29573800f7d7e2466890dbc3bdd9c95354ba9 /libc/include
parent25a3a3ea8cb234bead6d80a71823713b80acfea8 (diff)
downloadbionic-b5239ed16aeba648f1c9bcb7a4887b8a41670326.zip
bionic-b5239ed16aeba648f1c9bcb7a4887b8a41670326.tar.gz
bionic-b5239ed16aeba648f1c9bcb7a4887b8a41670326.tar.bz2
libc: allow usage of time64.h from cpp code
Wrapped declarations in time64.h with __BEGIN_DECLS/__END_DECLS so that the prototypes are correctly identified as extern C. Change-Id: I253453307831c929a6c7174b28b48bceef946fed Signed-off-by: Fred Fettinger <fred.fettinger@motorola.com> Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'libc/include')
-rw-r--r--libc/include/time64.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/include/time64.h b/libc/include/time64.h
index 9da4bc7..7ec05af 100644
--- a/libc/include/time64.h
+++ b/libc/include/time64.h
@@ -31,9 +31,12 @@ Modified for Bionic by the Android Open Source Project
#ifndef TIME64_H
#define TIME64_H
+#include <sys/cdefs.h>
#include <time.h>
#include <stdint.h>
+__BEGIN_DECLS
+
typedef int64_t time64_t;
struct tm *gmtime64_r (const time64_t *, struct tm *);
@@ -51,4 +54,6 @@ time64_t timegm64 (const struct tm *);
time64_t mktime64 (const struct tm *);
time64_t timelocal64 (const struct tm *);
+__END_DECLS
+
#endif /* TIME64_H */