aboutsummaryrefslogtreecommitdiff
path: root/tinycc/win32/include/sec_api/sys/timeb_s.h
diff options
context:
space:
mode:
authorUneven Prankster <unevenprankster@protonmail.com>2023-07-12 13:22:29 -0300
committerUneven Prankster <unevenprankster@protonmail.com>2023-07-12 13:22:29 -0300
commitfa2bdd711212ba6b7a94a20971e8bfa281e73296 (patch)
tree6713b3c0379507d49558287b71dd360ce188a2f0 /tinycc/win32/include/sec_api/sys/timeb_s.h
lol
Diffstat (limited to 'tinycc/win32/include/sec_api/sys/timeb_s.h')
-rw-r--r--tinycc/win32/include/sec_api/sys/timeb_s.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/tinycc/win32/include/sec_api/sys/timeb_s.h b/tinycc/win32/include/sec_api/sys/timeb_s.h
new file mode 100644
index 0000000..af5ef09
--- /dev/null
+++ b/tinycc/win32/include/sec_api/sys/timeb_s.h
@@ -0,0 +1,34 @@
+/**
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is part of the w64 mingw-runtime package.
+ * No warranty is given; refer to the file DISCLAIMER within this package.
+ */
+
+#ifndef _TIMEB_H_S
+#define _TIMEB_H_S
+
+#include <sys/timeb.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if defined(MINGW_HAS_SECURE_API)
+
+#ifdef _USE_32BIT_TIME_T
+#define _ftime_s _ftime32_s
+#else
+#define _ftime_s _ftime64_s
+#endif
+
+ _CRTIMP errno_t __cdecl _ftime32_s(struct __timeb32 *_Time);
+#if _INTEGRAL_MAX_BITS >= 64
+ _CRTIMP errno_t __cdecl _ftime64_s(struct __timeb64 *_Time);
+#endif
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif