scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit c4fda497bf41a1999f4e545ca5be7406eaf49ec4
parent e50230259a85439f74303a6fac8821ea53bcd8b8
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 23 Feb 2018 11:22:12 +0000

[ar] Convert totime() into a function

If totime() is a macro then ar/main.o will be different
for every driver. It is desirable to share it between
different drivers.

Diffstat:
Mar/posix/stat.c | 6++++++
Mar/posix/stat.h | 1-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ar/posix/stat.c b/ar/posix/stat.c @@ -1,3 +1,9 @@ static char sccsid[] = "@(#) ./ar/stat.c"; #include "stat.h" + +time_t +totime(unsigned long long t) +{ + return t; +} diff --git a/ar/posix/stat.h b/ar/posix/stat.h @@ -3,4 +3,3 @@ #include <sys/stat.h> #include <unistd.h> -#define totime(x) (x)