Ok, here is an amended version of the patch.
________________________________
From: LIU Hao <[email protected]>
Sent: Sunday, January 2, 2022 6:01 AM
To: [email protected] 
<[email protected]>; Michel Zou <[email protected]>
Subject: Re: [Mingw-w64-public] patch: add timeapi.h

在 1/1/22 5:21 PM, Michel Zou 写道:
> diff --git a/mingw-w64-headers/include/timeapi.h 
> b/mingw-w64-headers/include/timeapi.h
> new file mode 100644
> index 000000000..5ac5a9d77
> --- /dev/null
> +++ b/mingw-w64-headers/include/timeapi.h
> @@ -0,0 +1,11 @@
> +/**
> + * This file has no copyright assigned and is placed in the Public Domain.
> + * This file is part of the mingw-w64 runtime package.
> + * No warranty is given; refer to the file DISCLAIMER.PD within this package.
> + */
> +#ifndef _INC_TIMEAPI
> +#define _INC_TIMEAPI
> +
> +// timeBeginPeriod and al are defined in mmsystem.h
> +#include <mmsystem.h>
> +

There was no `#endif` in this patch.

Also C99 comments are not allowed in headers; please use C89 comments instead.


--
Best regards,
LIU Hao



From 03c8bddd1fc8ec7b18e395af7be9081fe8b92810 Mon Sep 17 00:00:00 2001
From: Michel Zou <[email protected]>
Date: Sat, 1 Jan 2022 10:16:11 +0100
Subject: [PATCH] add timeapi.h

---
 mingw-w64-headers/include/timeapi.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 mingw-w64-headers/include/timeapi.h

diff --git a/mingw-w64-headers/include/timeapi.h b/mingw-w64-headers/include/timeapi.h
new file mode 100644
index 000000000..159532ad5
--- /dev/null
+++ b/mingw-w64-headers/include/timeapi.h
@@ -0,0 +1,12 @@
+/**
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is part of the mingw-w64 runtime package.
+ * No warranty is given; refer to the file DISCLAIMER.PD within this package.
+ */
+#ifndef _INC_TIMEAPI
+#define _INC_TIMEAPI
+
+/* timeBeginPeriod and al are defined in mmsystem.h */
+#include <mmsystem.h>
+
+#endif
-- 
2.34.1

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to