Module: wine
Branch: master
Commit: 6bcdbbe5736f8c5f9adb1c4c687a3f23a4e5c261
URL: https://gitlab.winehq.org/wine/wine/-/commit/6bcdbbe5736f8c5f9adb1c4c687a3f…
Author: Vitaly Lipatov <lav(a)etersoft.ru>
Date: Sun Jul 16 17:17:04 2023 +0300
include: Add specstrings_strict.h with some defines.
---
include/Makefile.in | 1 +
include/specstrings.h | 4 ++++
include/specstrings_strict.h | 37 +++++++++++++++++++++++++++++++++++++
3 files changed, 42 insertions(+)
diff --git a/include/Makefile.in b/include/Makefile.in
index 54b4ab5925e..c5ba156f50e 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -710,6 +710,7 @@ SOURCES = \
softpub.h \
spatialaudioclient.idl \
specstrings.h \
+ specstrings_strict.h \
sperror.h \
sql.h \
sqlext.h \
diff --git a/include/specstrings.h b/include/specstrings.h
index f2636a49779..4d404759c2e 100644
--- a/include/specstrings.h
+++ b/include/specstrings.h
@@ -323,6 +323,10 @@ extern "C" {
#endif
#endif
+#ifndef RC_INVOKED
+#include <specstrings_strict.h>
+#endif /* RC_INVOKED */
+
#ifndef DECLSPEC_ADDRSAFE
#if (_MSC_VER >= 1200) && (defined(_M_ALPHA) || defined(_M_AXP64))
#define DECLSPEC_ADDRSAFE __declspec(address_safe)
diff --git a/include/specstrings_strict.h b/include/specstrings_strict.h
new file mode 100644
index 00000000000..07a30db765c
--- /dev/null
+++ b/include/specstrings_strict.h
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2023 Vitaly Lipatov
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef __SPECSTRINGS_STRICT_LEVEL
+#define __SPECSTRINGS_STRICT_LEVEL 1
+#endif
+
+#if !defined(__midl) && !defined(__WIDL__) && (__SPECSTRINGS_STRICT_LEVEL > 0)
+
+#define __field_bcount(size)
+#define __field_ecount(size)
+#define __field_xcount(size)
+#define __success(status)
+#define __range(lb,ub)
+
+#ifdef _MSC_VER
+#define __in
+#define __out
+#define __reserved
+#endif
+
+#endif