aboutsummaryrefslogtreecommitdiffstats
path: root/include/lib/libc/time.h
diff options
context:
space:
mode:
authorBence Szépkúti <bence.szepkuti@arm.com>2019-10-25 17:48:20 +0200
committerBence Szépkúti <bence.szepkuti@arm.com>2019-12-06 11:37:19 +0100
commitb382ac6887b864ff4252022cbeb13f0405daff79 (patch)
tree8e90584dedd35ac97218f760af6d1e0a589aa3e2 /include/lib/libc/time.h
parentd005cfbfd98f5450559178f57e1df9acaab42cb6 (diff)
downloadplatform_external_arm-trusted-firmware-b382ac6887b864ff4252022cbeb13f0405daff79.tar.gz
platform_external_arm-trusted-firmware-b382ac6887b864ff4252022cbeb13f0405daff79.tar.bz2
platform_external_arm-trusted-firmware-b382ac6887b864ff4252022cbeb13f0405daff79.zip
libc: Consolidate unified definitions
As supporting architectures aside from AArch32 and AArch64 is not a concern, keeping identical definitions in two places for a large part of the libc seems counterproductive The int128 types were left un-unified as __int128 is not supported by gcc on AArch32 Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com> Change-Id: Idf08e6fab7e4680d9da62d3c57266ea2d80472cf
Diffstat (limited to 'include/lib/libc/time.h')
-rw-r--r--include/lib/libc/time.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/lib/libc/time.h b/include/lib/libc/time.h
index 71d3e7ec9..714884b05 100644
--- a/include/lib/libc/time.h
+++ b/include/lib/libc/time.h
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
/*
- * Portions copyright (c) 2018, ARM Limited and Contributors.
+ * Portions copyright (c) 2018-2019, ARM Limited and Contributors.
* All rights reserved.
*/
@@ -13,6 +13,8 @@
#include <time_.h>
+typedef long int time_t;
+
#ifndef NULL
#define NULL ((void *) 0)
#endif