summaryrefslogtreecommitdiff
path: root/support/dktools/dk4time.ctr
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-09-20 03:03:26 +0000
committerNorbert Preining <norbert@preining.info>2020-09-20 03:03:26 +0000
commit1f457376b478257b88d4a857f5ec1b6155442dd7 (patch)
tree2a06a60551dea362cf8cb0cb0ba66c78608717c4 /support/dktools/dk4time.ctr
parentac690ca29ad5bf8a5203a65fd6252f7b564f4727 (diff)
CTAN sync 202009200303
Diffstat (limited to 'support/dktools/dk4time.ctr')
-rw-r--r--support/dktools/dk4time.ctr28
1 files changed, 27 insertions, 1 deletions
diff --git a/support/dktools/dk4time.ctr b/support/dktools/dk4time.ctr
index 374c3abac3..23c7fb9cbf 100644
--- a/support/dktools/dk4time.ctr
+++ b/support/dktools/dk4time.ctr
@@ -2,7 +2,7 @@
copyright owner = Dirk Krause
copyright year = 2015-xxxx
-license = bsd
+SPDX-License-Identifier: BSD-3-Clause
@@ -16,15 +16,27 @@ license = bsd
*/
#ifndef DK4CONF_H_INCLUDED
+#if DK4_BUILDING_DKTOOLS4
#include "dk4conf.h"
+#else
+#include <dktools-4/dk4conf.h>
+#endif
#endif
#ifndef DK4TYPES_H_INCLUDED
+#if DK4_BUILDING_DKTOOLS4
#include "dk4types.h"
+#else
+#include <dktools-4/dk4types.h>
+#endif
#endif
#ifndef DK4ERROR_H_INCLUDED
+#if DK4_BUILDING_DKTOOLS4
#include "dk4error.h"
+#else
+#include <dktools-4/dk4error.h>
+#endif
#endif
#if DK4_TIME_WITH_SYS_TIME
@@ -79,22 +91,36 @@ dk4time_get(dk4_time_t *timer);
%% module
+#include "dk4conf.h"
+
+#if DK4_HAVE_ASSERT_H
+#ifndef ASSERT_H_INCLUDED
+#include <assert.h>
+#define ASSERT_H_INCLUDED 1
+#endif
+#endif
+
#include "dk4time.h"
+#if 0
static const char * const dk4time_kw[] = {
/* 0 */ "0",
/* 1 */ " ",
/* 2 */ "-",
/* 3 */ ":"
};
+#endif
void
dk4time_get(dk4_time_t *timer)
{
+#if DK4_USE_ASSERT
+ assert(NULL != timer);
+#endif
#if DK4_ON_WINDOWS
(void)_time64(timer);
#else