diff options
Diffstat (limited to 'common/bbs')
-rw-r--r-- | common/bbs/Makefile | 2 | ||||
-rw-r--r-- | common/bbs/log.c | 3 | ||||
-rw-r--r-- | common/bbs/time.c | 11 |
3 files changed, 15 insertions, 1 deletions
diff --git a/common/bbs/Makefile b/common/bbs/Makefile index e3aae6e0..bb99c29f 100644 --- a/common/bbs/Makefile +++ b/common/bbs/Makefile @@ -4,7 +4,7 @@ SRCROOT= ../.. CFLAGS+= -I$(SRCROOT)/include -OBJS= log.o file.o money.o names.o path.o string.o +OBJS= log.o file.o money.o names.o path.o time.o string.o # record.o TARGET= libcmbbs.a diff --git a/common/bbs/log.c b/common/bbs/log.c index e69de29b..eef9d807 100644 --- a/common/bbs/log.c +++ b/common/bbs/log.c @@ -0,0 +1,3 @@ +#include "bbs.h" +#include "cmbbs.h" + diff --git a/common/bbs/time.c b/common/bbs/time.c new file mode 100644 index 00000000..6ea402b8 --- /dev/null +++ b/common/bbs/time.c @@ -0,0 +1,11 @@ +#include "bbs.h" +#include "cmsys.h" + +// Now() is a maple3 flavor API. +const char * +Now() +{ + syncnow(); + return Cdate(&now); +} + |