Re: [Mingw-w64-public] [PATCH] Cast certain enums to int

2016-04-22 Thread LRN
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 22.04.2016 20:24, LRN wrote:
> This matches the behaviour of MSVC better in cases when there is a mix
> of values < 0 and values > 0x7FFF in the same enum, which, without
> this change, prompts GCC to increase enum size to 8 bytes.
> 
> Fixes bug #456
> 
> patch is attached
> 
> 

Yeah, and another thing: i don't have x86_64 gcc, nor did i test this
with x64 msvc. No idea what sizeof(any enum) on 64-bit architecture is
for these two compilers, or how that interacts with sizeof(int) being 8
there.

- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQEcBAEBCAAGBQJXGn3RAAoJEOs4Jb6SI2CwS2AIAIuG7nleJ9X4pERg9sxlWu6q
dEWhYl+aOTRdoFnimozkwbPF6MkdJYpES68UzFeB23/pDgIz42NlTskvEOAPQRh8
EXN7TIX8mjGMY7Z/K+s4Dq/36R+6PX8Dv4r9EonlWI/gzo0/IJR2OMMaCJINC+sU
6y/NBr2ah9v+bVVQbFFUFz3MGxMrztX49BllLj+UGzQg/1Uzf1OnTs0gCk+OOUQm
Oq5u3pe1BNEVke2K9Ximya6feHZeX1S78spg/IK4VYic+7rYdOmcJplNBZ+E1N3W
3KONK3LCmEcsgeeYM2kwBVpJ5s7rTAyv+1dAIauDRx79Y+sEz4XxA1UmIShDpik=
=dZF5
-END PGP SIGNATURE-

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] Problem with [2c5fe3]

2016-04-22 Thread Mateusz
Hi,

Commit [2c5fe3] breaks build of cross compiler on Ubuntu (GCC 4.9.3):

x86_64-w64-mingw32-dlltool --as-flags=--64 -m i386:x86-64 -k 
--as=x86_64-w64-mingw32-as --output-lib lib64/libcrtdll.a --input-def 
/home/ma/m/source/mingw-w64-v5/mingw-w64-crt/lib64/crtdll.def --dllname 
crtdll.dll
*make[1]: *** No rule to make target 
'/home/ma/m/source/mingw-w64-v5/mingw-w64-crt/winrt/libruntimeobject.a', 
needed by 'all-am'.  Stop.*
rm lib64/msvcr120.def lib64/msvcr90.def lib64/msvcr90d.def 
lib64/msvcr100.def lib64/msvcr110.def lib64/msvcr120d.def

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] Missing header: lowlevelmonitorconfigurationapi.h

2016-04-22 Thread LRN
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

lowlevelmonitorconfigurationapi.h is missing from mingw-w64-headers.
It's a lowlevel counterpart of highlevelmonitorconfigurationapi.h and
should have similar structure and dependencies.

Please add it.

- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org


-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQEcBAEBCAAGBQJXGmoeAAoJEOs4Jb6SI2CwniAH/3J6K6mIeg9umMmXCsVaQBYI
g284CunAflOetmymEffMKdmmeVWYiuFVvp5hIXjeDftZhVFBdb5r2oI2AeYu4vum
zPseCvxTwfVxKncTHcZuss8Vi+mSHVR5AlfTNK8kn2F4ffgPG9PpC34No4nmKDzl
0iiiuI6ZEuhT3fk6jvvgFa3erUm75j73pGSLDOGdacjSamY5oqOqAwrsSrnT0HDX
yeqwz8aZX1JLiYqxTCirbZs6WSdkhYTgBhUKaakU/LR1jHu9UJ8a2MLo67DeZM2K
kbF77EA+tC7tIOCLp1/BSm5DAFy2Ya7UmVz9d8VkwpTCsTF0C8jkiorRVAWribI=
=Pmxh
-END PGP SIGNATURE-

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH] Cast certain enums to int

2016-04-22 Thread LRN
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

This matches the behaviour of MSVC better in cases when there is
a mix of values < 0 and values > 0x7FFF in the same enum,
which, without this change, prompts GCC to increase enum size to 8 bytes.

Fixes bug #456

patch is attached

- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org

-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQEcBAEBCAAGBQJXGl48AAoJEOs4Jb6SI2Cwp3QH/1bl0MLE0oK9bDBo8Gsi+IXN
0Ra2B8AbXWgE2HvZepac8EkymxfqvuyIPSqZKgAqxgw+KsR9MiVzrVMAspInL9cw
sgyBbCa4UE7BoEjqWVPdYxRzMebRs7uQFvKgDX0RW4TMsZgexSDsgEIU2rRyzW8f
cmv31uPwWEedSCTvfrHi94ic8Ken3EkuIUXE11ShRAFL4JgY7L1wdkIzqwU6BgKX
jmLiW6TWtPxDHXoZ4l8Qf9s+OCOSf3wOP0C+xCQC56cKCGRJ060M7wxM3nGg2QtL
aP4jpsgy3zgI/mxNf6N+BPySRc510N+W9lW6IeBPUBtk2ESJa6h043z9BKMS97Q=
=Pk8Z
-END PGP SIGNATURE-
From 9c267d96aac4bd3cc00aaf4a174312fc55f0a32c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?=
 =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= 
Date: Fri, 22 Apr 2016 05:12:09 +
Subject: [PATCH] Cast certain enums to int

This matches the behaviour of MSVC better in cases when there is
a mix of values < 0 and values > 0x7FFF in the same enum,
which, without this change, prompts GCC to increase enum size to 8 bytes.

Fixes bug #456
---
 mingw-w64-headers/include/adoint_backcompat.h | 10 +++---
 mingw-w64-headers/include/tom.h   | 50 +--
 mingw-w64-headers/include/wingdi.h| 34 +-
 3 files changed, 47 insertions(+), 47 deletions(-)

diff --git a/mingw-w64-headers/include/adoint_backcompat.h 
b/mingw-w64-headers/include/adoint_backcompat.h
index bbc3c42..f816cb6 100755
--- a/mingw-w64-headers/include/adoint_backcompat.h
+++ b/mingw-w64-headers/include/adoint_backcompat.h
@@ -461,11 +461,11 @@ extern "C" {
   } ConnectModeEnum;
   typedef DECLSPEC_UUID ("0570--0010-8000-00AA006D2EA4")
   enum RecordCreateOptionsEnum { adCreateCollection = 0x2000,
-adCreateStructDoc = 0x8000,
-adCreateNonCollection = 0,
-adOpenIfExists = 0x200,
-adCreateOverwrite = 0x400,
-adFailIfNotExists = -1
+adCreateStructDoc = (int) 0x8000,
+adCreateNonCollection = (int) 0,
+adOpenIfExists = (int) 0x200,
+adCreateOverwrite = (int) 0x400,
+adFailIfNotExists = (int) -1
   } RecordCreateOptionsEnum;
   typedef DECLSPEC_UUID ("0571--0010-8000-00AA006D2EA4")
   enum RecordOpenOptionsEnum { adOpenRecordUnspecified = -1,
diff --git a/mingw-w64-headers/include/tom.h b/mingw-w64-headers/include/tom.h
index c3bc7a3..1bb7545 100644
--- a/mingw-w64-headers/include/tom.h
+++ b/mingw-w64-headers/include/tom.h
@@ -121,31 +121,31 @@ extern "C" {
 #ifndef __tom_LIBRARY_DEFINED__
 #define __tom_LIBRARY_DEFINED__
   typedef enum __MIDL___MIDL_itf_tom__0001 {
-tomFalse = 0,tomTrue = -1,tomUndefined = -999,tomToggle = 
-998,tomAutoColor = -997,tomDefault = -996,tomSuspend = -995,
-tomResume = -994,tomApplyNow = 0,tomApplyLater = 1,tomTrackParms = 
2,tomCacheParms = 3,tomBackward = 0xc001,tomForward = 0x3fff,
-tomMove = 0,tomExtend = 1,tomNoSelection = 0,tomSelectionIP = 
1,tomSelectionNormal = 2,tomSelectionFrame = 3,tomSelectionColumn = 4,
-tomSelectionRow = 5,tomSelectionBlock = 6,tomSelectionInlineShape = 
7,tomSelectionShape = 8,tomSelStartActive = 1,tomSelAtEOL = 2,
-tomSelOvertype = 4,tomSelActive = 8,tomSelReplace = 16,tomEnd = 0,tomStart 
= 32,tomCollapseEnd = 0,tomCollapseStart = 1,tomClientCoord = 256,
-tomNone = 0,tomSingle = 1,tomWords = 2,tomDouble = 3,tomDotted = 4,tomDash 
= 5,tomDashDot = 6,tomDashDotDot = 7,tomWave = 8,tomThick = 9,
-tomHair = 10,tomLineSpaceSingle = 0,tomLineSpace1pt5 = 
1,tomLineSpaceDouble = 2,tomLineSpaceAtLeast = 3,tomLineSpaceExactly = 4,
-tomLineSpaceMultiple = 5,tomAlignLeft = 0,tomAlignCenter = 1,tomAlignRight 
= 2,tomAlignJustify = 3,tomAlignDecimal = 3,tomAlignBar = 4,
-tomAlignInterWord = 3,tomAlignInterLetter = 4,tomAlignScaled = 
5,tomAlignGlyphs = 6,tomAlignSnapGrid = 7,tomSpaces = 0,tomDots = 1,tomDashes = 
2,
-tomLines = 3,tomThickLines = 4,tomEquals = 5,tomTabBack = -3,tomTabNext = 
-2,tomTabHere = -1,tomListNone = 0,tomListBullet = 1,
-tomListNumberAsArabic = 2,tomListNumberAsLCLetter = 
3,tomListNumberAsUCLetter = 4,tomListNumberAsLCRoman = 5,tomListNumberAsUCRoman 
= 6,
-tomListNumberAsSequence = 7,tomListParentheses = 0x1,tomListPeriod = 
0x2,tomListPlain = 0x3,tomCharacter = 1,tomWord = 2,
-tomSentence = 3,tomParagraph = 4,tomLine = 5,tomStory = 6,tomScreen = 
7,tomSection = 8,tomColumn = 9,tomRow = 10,tomWindow = 11,tomCell = 12,
-tomCharFormat = 13,tomParaFormat = 14,tomTable = 15,tomObject = 
16,tomMatchWord = 2,tomMatchCase = 4,tomMatchPattern = 8,tomUnknownStory = 0,
-tomMainTextStory = 1,tomFootnotesStory = 2,tomEndnotesStory = 
3,tomCommentsStory = 

[Mingw-w64-public] [PATCH] Check for ms_printf format and non-NULL format in MS printf

2016-04-22 Thread LRN
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

mingw-w64 ANSI printf has these checks, so why not MS printf?

patch is attached

P.S. This is an old patch that's been sitting in my toolchain for a year. I
don't remember why i've added it, but it seems to not to break anything.

- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org

-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQEcBAEBCAAGBQJXGl4FAAoJEOs4Jb6SI2Cws4YH/26ATu+vL6TLHmfD43cgeUcX
lfQkAx7gCRYJfGh7rgSlGXKkQfEamCXadH4/OAizTzVLJNf7XYASpPzCtSNunUw4
C+GOWCsD6Rho5nduuoW6nd+JB8ZCky8cVYGKbKfQZZnzAJwIoi1uIzqaSWoWqk0Y
9wbW8uigjolsdVWc+sBMqQuPHXbdLTxWA2mUIA64I+/cUN5m/Dwui6qfLiYSW4zr
iA3U7eUk/xvUSOdEPKfanPF0uiq+rVzprgiQDlkk2BZUGtX7Zin3ps78M7dKrZL9
UYmuqoirjmLZsf/SstTM3IQqSm51OcTq8yl2H548LwOAV2fDpCdbFTh90PLuYxM=
=x1tk
-END PGP SIGNATURE-
From 05c30154fe5762c4303414e6387a0a301208b9c3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?=
 =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= 
Date: Fri, 22 Apr 2016 05:29:22 +
Subject: [PATCH] Check for ms_printf format and non-NULL format in MS printf
 funcs.

mingw-w64 ANSI printf has these checks, so why not MS printf?
---
 mingw-w64-headers/crt/stdio.h | 26 +-
 1 file changed, 21 insertions(+), 5 deletions(-)

diff --git a/mingw-w64-headers/crt/stdio.h b/mingw-w64-headers/crt/stdio.h
index 3b49ddd..9f1cfff 100644
--- a/mingw-w64-headers/crt/stdio.h
+++ b/mingw-w64-headers/crt/stdio.h
@@ -374,41 +374,53 @@ int vsnprintf (char *__stream, size_t __n, const char 
*__format, __builtin_va_li
 /*
  * Default configuration: simply direct all calls to MSVCRT...
  */
+  __attribute__((__format__ (ms_printf, 2, 3))) __MINGW_ATTRIB_NONNULL(2)
   int __cdecl fprintf(FILE * __restrict__ _File,const char * __restrict__ 
_Format,...);
+  __attribute__((__format__ (ms_printf, 1, 2))) __MINGW_ATTRIB_NONNULL(1)
   int __cdecl printf(const char * __restrict__ _Format,...);
+  __attribute__((__format__ (ms_printf, 2, 3))) __MINGW_ATTRIB_NONNULL(2)
   int __cdecl sprintf(char * __restrict__ _Dest,const char * __restrict__ 
_Format,...) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
 
+  __attribute__((__format__ (ms_printf, 2, 0))) __MINGW_ATTRIB_NONNULL(2)
   int __cdecl vfprintf(FILE * __restrict__ _File,const char * __restrict__ 
_Format,va_list _ArgList);
+  __attribute__((__format__ (ms_printf, 1, 0))) __MINGW_ATTRIB_NONNULL(1)
   int __cdecl vprintf(const char * __restrict__ _Format,va_list _ArgList);
+  __attribute__((__format__ (ms_printf, 2, 0))) __MINGW_ATTRIB_NONNULL(2)
   int __cdecl vsprintf(char * __restrict__ _Dest,const char * __restrict__ 
_Format,va_list _Args) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
 
+  __attribute__((__format__ (ms_scanf, 2, 3))) __MINGW_ATTRIB_NONNULL(2)
   int __cdecl fscanf(FILE * __restrict__ _File,const char * __restrict__ 
_Format,...) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
+  __attribute__((__format__ (ms_scanf, 1, 2))) __MINGW_ATTRIB_NONNULL(1)
   int __cdecl scanf(const char * __restrict__ _Format,...) 
__MINGW_ATTRIB_DEPRECATED_SEC_WARN;
+  __attribute__((__format__ (ms_scanf, 2, 3))) __MINGW_ATTRIB_NONNULL(2)
   int __cdecl sscanf(const char * __restrict__ _Src,const char * __restrict__ 
_Format,...) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
 #ifdef _GNU_SOURCE
   int __cdecl vasprintf(char ** __restrict__ ret,const char * __restrict__ 
format,va_list ap)  __attribute__ ((format (__MINGW_PRINTF_FORMAT, 2, 0)));;
   int __cdecl asprintf(char ** __restrict__ ret,const char * __restrict__ 
format,...) __attribute__ ((format (__MINGW_PRINTF_FORMAT, 2, 3)));
 #endif /*_GNU_SOURCE*/
 #ifndef __NO_ISOCEXT  /* externs in libmingwex.a */
+  __attribute__((__format__ (ms_scanf, 1, 0))) __MINGW_ATTRIB_NONNULL(1)
   int __cdecl __ms_vscanf(const char * __restrict__ Format, va_list argp);
+  __attribute__((__format__ (ms_scanf, 2, 0))) __MINGW_ATTRIB_NONNULL(2)
   int __cdecl __ms_vfscanf (FILE * __restrict__ fp, const char * __restrict__ 
Format,va_list argp);
+  __attribute__((__format__ (ms_scanf, 2, 0))) __MINGW_ATTRIB_NONNULL(2)
   int __cdecl __ms_vsscanf (const char * __restrict__ _Str,const char * 
__restrict__ Format,va_list argp);
 
   __mingw_ovr
-  __MINGW_ATTRIB_NONNULL(2)
+  __attribute__((__format__ (ms_scanf, 2, 0))) __MINGW_ATTRIB_NONNULL(2)
   int vfscanf (FILE *__stream,  const char *__format, __builtin_va_list 
__local_argv)
   {
 return __ms_vfscanf (__stream, __format, __local_argv);
   }
 
   __mingw_ovr
-  __MINGW_ATTRIB_NONNULL(2)
+  __attribute__((__format__ (ms_scanf, 2, 0))) __MINGW_ATTRIB_NONNULL(2)
   int vsscanf (const char * __restrict__ __source, const char * __restrict__ 
__format, __builtin_va_list __local_argv)
   {
 return __ms_vsscanf( __source, __format, __local_argv );
   }
   __mingw_ovr
-  __MINGW_ATTRIB_NONNULL(1)
+  __attribute__((__format__ (ms_scanf, 1, 0))) __MINGW_ATTRIB_NONNULL(1)
   int vscanf(const char *__format,  __builtin_va_list __local_argv)
   

[Mingw-w64-public] mingw-w64-public silently drops my posts

2016-04-22 Thread LRN
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

This is a recent development. Last of my message that got through (apart
from a couple of test messages that i've sent today) was:
Re: [Mingw-w64-public] Differentiate on MinGW-w64 and TDM-gcc
on March 15.

After some testing (thanks, lh_mouse) i've discovered that the list drops
my messages that are signed with PGP/MIME. Messages that are signed with
inline PGP, as well as unsigned messages, do come through though.

Please fix. While inline PGP signatures work well enough, they add a lot
of cruft that would be better left out.

Anyway, i'll re-sent a few messages with inline signatures and keep
sending with inline signatures, until one of the list admins does something
.

- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQEcBAEBCAAGBQJXGl21AAoJEOs4Jb6SI2CwJsUH/2GOo1aCvERaEHgV852zIIUI
RUE3FTopXspu6cJUK1Bnk/Aj1ZtDB4ZqRWXrTa4DfK5KTVlIJ0E9XVH4NvCslTcW
pWOQfTmc9LPiaNvtYhQ+FAY0N2f9vBWzJ6kg81O61ZHnXNi0pTkh+LG8CtUcDIxl
Dt4P5UOfpEp498Fp74Xzyd2jvk0cwzQNFTyL6XC+ZfHwJmGaFgpD6p8FlJBBpErW
H6+WvQhahKRWOQ0If5321RUv/Nbzoog/76wM78SG3j2hzXDF/vRcFkyon9kXTpII
xDGC2up6LVjVweZnP7E2fdcKVcqoyWRLU9chOrnMAOHdL22zW+RzcSBD9o2/XB4=
=ijc4
-END PGP SIGNATURE-

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] yet another test mail

2016-04-22 Thread LRN
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Ignore this if you see it, i'm checking whether my messages reach the
mailing list.

- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org


-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQEcBAEBCAAGBQJXGlwwAAoJEOs4Jb6SI2Cw3PAIAMlnS+LSg02C9pQhxsHsF1BM
x7oyHMgTZEIKCDKa7y94TyEI5yvC4ptwTZcv7xhs0vxoKZO2FD4ZLxOy+C8UVhtg
t2UT8jIONjTYypYf14zyTV4lwWM+JgAtsHZaQ2nQVtCy+VDZwkcQM9E1Ww8RsDsP
mwIYJiX3Q+dm+DLzzE28TGDqVZGcbPippjS0iu7Z+WPQHSYb6KFeFdyApBCQIYiH
HgT6gqhnOUB+q1vvwF9ngOeZF2eOczo6E3spHF6wMaefhCHnzoYYml9YAktPvE39
TvtCR176MFCm+yPblfubVOIs5Y4IhIjqRUJyNH7kctZBLozlwJiPADBw4hK9e9o=
=Lwv1
-END PGP SIGNATURE-

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] another test mail

2016-04-22 Thread LRN
Ignore this if you see it, i'm checking whether my messages reach the
mailing list.

-- 
O< ascii ribbon - stop html email! - www.asciiribbon.org



--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH] GetModuleFileName is allowed on winrt

2016-04-22 Thread Hugo Beauzée-Luyssen
---
 mingw-w64-headers/include/libloaderapi.h | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/mingw-w64-headers/include/libloaderapi.h 
b/mingw-w64-headers/include/libloaderapi.h
index 765a63f..e26b3d7 100755
--- a/mingw-w64-headers/include/libloaderapi.h
+++ b/mingw-w64-headers/include/libloaderapi.h
@@ -80,8 +80,6 @@ extern "C" {
   WINBASEAPI HRSRC WINAPI FindResourceExW (HMODULE hModule, LPCWSTR lpType, 
LPCWSTR lpName, WORD wLanguage);
   WINBASEAPI DECLSPEC_NORETURN VOID WINAPI FreeLibraryAndExitThread (HMODULE 
hLibModule, DWORD dwExitCode);
   WINBASEAPI WINBOOL WINAPI FreeResource (HGLOBAL hResData);
-  WINBASEAPI DWORD WINAPI GetModuleFileNameA (HMODULE hModule, LPSTR 
lpFilename, DWORD nSize);
-  WINBASEAPI DWORD WINAPI GetModuleFileNameW (HMODULE hModule, LPWSTR 
lpFilename, DWORD nSize);
   WINBASEAPI HMODULE WINAPI GetModuleHandleA (LPCSTR lpModuleName);
   WINBASEAPI HMODULE WINAPI GetModuleHandleW (LPCWSTR lpModuleName);
   WINBASEAPI HMODULE WINAPI LoadLibraryExA (LPCSTR lpLibFileName, HANDLE 
hFile, DWORD dwFlags);
@@ -105,7 +103,6 @@ extern "C" {
 #endif
 
 #define LoadString __MINGW_NAME_AW(LoadString)
-#define GetModuleFileName __MINGW_NAME_AW(GetModuleFileName)
 #define GetModuleHandle __MINGW_NAME_AW(GetModuleHandle)
 #define LoadLibraryEx __MINGW_NAME_AW(LoadLibraryEx)
 
@@ -142,6 +139,10 @@ WINBASEAPI HMODULE WINAPI GetModuleHandleW (LPCWSTR 
lpModuleName);
 #endif
 #endif
 
+WINBASEAPI DWORD WINAPI GetModuleFileNameA (HMODULE hModule, LPSTR lpFilename, 
DWORD nSize);
+WINBASEAPI DWORD WINAPI GetModuleFileNameW (HMODULE hModule, LPWSTR 
lpFilename, DWORD nSize);
+#define GetModuleFileName __MINGW_NAME_AW(GetModuleFileName)
+
 #ifdef __cplusplus
 }
 #endif
-- 
2.8.0.rc3


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public