OK, I'm disappointed in gmail then. Here is a version with a .txt
extension so it should have the right MIME type and get through.
--David
On Sun, Apr 2, 2017 at 1:00 AM, Mateusza Mikuła <[email protected]> wrote:
> Looks like patch couldn't make it through.
>
> On April 2, 2017 2:55:35 AM GMT+02:00, David Grayson <
> [email protected]> wrote:
> >In MSYS2 and in my own compilation of a mingw-w64 GCC 6.3.0 toolchain,
> >strsafe.h was producing tons of warnings when included because it was
> >declaring its functions as inline but then not defining them.
> >
> >I think the right solution is to change "__inline" to "__CRT_INLINE" so
> >I
> >have attached a patch for doing that. I could have just removed the
> >"__inline" but it seems like mingw-w64 has a feature of making all its
> >functions be inline and I was not sure, but probably the right way to
> >do
> >that is to use __CRT_INLINE.
> >
> >Thanks!
> >
> >--David Grayson
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
From 3ac3340f9ab3d2ad43bd28a0882be8714123e5de Mon Sep 17 00:00:00 2001
From: David Grayson <[email protected]>
Date: Sat, 1 Apr 2017 17:51:17 -0700
Subject: [PATCH] strsafe.h: Change __inline to __CRT_INLINE
This avoids warnings from GCC about inline functions that are not
defined.
---
mingw-w64-headers/include/strsafe.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mingw-w64-headers/include/strsafe.h
b/mingw-w64-headers/include/strsafe.h
index 36c7796c..ba2eb610 100644
--- a/mingw-w64-headers/include/strsafe.h
+++ b/mingw-w64-headers/include/strsafe.h
@@ -82,9 +82,9 @@ typedef __LONG32 HRESULT;
#endif
#ifndef __CRT_STRSAFE_IMPL
-#define STRSAFEAPI _STRSAFE_EXTERN_C __inline HRESULT WINAPI
+#define STRSAFEAPI _STRSAFE_EXTERN_C __CRT_INLINE HRESULT WINAPI
/* Variadic functions can't be __stdcall. */
-#define STRSAFEAPIV _STRSAFE_EXTERN_C __inline HRESULT
+#define STRSAFEAPIV _STRSAFE_EXTERN_C __CRT_INLINE HRESULT
#else
#define STRSAFEAPI HRESULT WINAPI
/* Variadic functions can't be __stdcall. */
--
2.12.1
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public