[Mingw-w64-public] adding dos stub program with ld to PE binary

2014-12-04 Thread bulk88
What is the GCC ld equivalent of Visual C's -stub ? http://msdn.microsoft.com/en-us/library/7z0585h5.aspx I need to add a MZ header-ed dos program to my PE binary instead of the default "This program cannot be run in DOS mode" program. ---

Re: [Mingw-w64-public] redirectable output in under windows

2014-12-04 Thread lh_mouse
Read the friendly manual first. I am not sure whether freopen() opens in FILE_SHARE_WRITE mode. If it doesn't you might have to use CreateFile() directly. From Windows SDK documentations: Consoles The CreateFile function can create a handle to console input (CONI

Re: [Mingw-w64-public] redirectable output in under windows

2014-12-04 Thread JonY
On 12/5/2014 04:28, Mark Cianfaglione wrote: > Folks > > I know this might be a little off list but does anyone have a good way > (in C) of being able to switch debug output from a file to console? > > I tired a method where I used freopen("CON","w+", stdout)but it always > seems to fail. I saw t

Re: [Mingw-w64-public] [patch] Add qsort_s declaration.

2014-12-04 Thread JonY
On 12/5/2014 02:32, Martell Malone wrote: > I committed this without realising when I applied my d3d11 patch which got > approval. > Can someone review if it's not okay I will revert ) > > Apologies > No problems, I moved the header declarations into sec_api. 0xD4EBC740.asc Description: appl

[Mingw-w64-public] redirectable output in under windows

2014-12-04 Thread Mark Cianfaglione
Folks I know this might be a little off list but does anyone have a good way (in C) of being able to switch debug output from a file to console? I tired a method where I used freopen("CON","w+", stdout)but it always seems to fail. I saw this on a website (stupidly I didn't bookmark it) and the si

Re: [Mingw-w64-public] Wine Gecko build error

2014-12-04 Thread Michael Cronenworth
On 12/04/2014 11:22 AM, Michael Cronenworth wrote: > Now I'm encountering a bug with mingw-headers: > http://fpaste.org/156673/14177133/ After discussing with Kai, he is working on fixing this issue. Only one issue remains. /builddir/build/BUILD/mingw-wine-gecko-2.34/wine-mozilla-2.34/toolkit/co

Re: [Mingw-w64-public] [patch] Add qsort_s declaration.

2014-12-04 Thread Martell Malone
I committed this without realising when I applied my d3d11 patch which got approval. Can someone review if it's not okay I will revert ) Apologies On Thu, Dec 4, 2014 at 4:12 PM, Alexpux wrote: > > > 24 нояб. 2014 г., в 14:41, Alexpux написал(а): > > > > > >> 24 нояб. 2014 г., в 14:28, Dongshe

Re: [Mingw-w64-public] [PATCH] Win Store compat functions

2014-12-04 Thread Martell Malone
We shouldn't get 2 defines of it for desktop mode as there is a guard above #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP) and on the desktop one it is guarded by #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) So we couldn't possibly get the definition twice. On Thu, Dec 4, 2014 a

Re: [Mingw-w64-public] [PATCH] Win Store compat functions

2014-12-04 Thread Kai Tietz
This looks wrong. As for desktop-mode we now have two definitions if WINSTORECOMPAT is defined. So the other place of prototyping needs to be guarded by '#ifndef WINSTORECOMPAT' for avoiding this double-definition. Ok with that. Kai 2014-12-04 18:17 GMT+01:00 Martell Malone : > I hope this is

Re: [Mingw-w64-public] Wine Gecko build error

2014-12-04 Thread Michael Cronenworth
On 12/04/2014 01:46 AM, Adrien Nader wrote: > I have the following in gthr-default.h: >#define __GTHREADS 1 >#define __GTHREADS_CXX0X 1 > >#include > > Can you check you have it too? Yes, it does. > Also, typically, these issues are best debugged with the output of > 'gcc -E'/'g++ -E

[Mingw-w64-public] [PATCH] Win Store compat functions

2014-12-04 Thread Martell Malone
I hope this is okay. I would like to introduce prototypes for the emulated functions. Thoughts? >From b943cf7d51aa7fcee6c64623a6cf0a8d5da7dcaa Mon Sep 17 00:00:00 2001 From: Martell Malone Date: Thu, 4 Dec 2014 17:14:55 + Subject: [PATCH] Introduce WINSTORECOMPAT guarded functions --- mingw

Re: [Mingw-w64-public] [patch] Add qsort_s declaration.

2014-12-04 Thread Alexpux
> 24 нояб. 2014 г., в 14:41, Alexpux написал(а): > > >> 24 нояб. 2014 г., в 14:28, Dongsheng Song >> написал(а): >> >> On Mon, Nov 24, 2014 at 5:40 PM, Alexey Pavlov wrote: >>> >>> Use qsort_s from msvcrt according to: >>> http://msdn.microsoft.com/en-us/library/4xc60xas.aspx >>> >> >> A

Re: [Mingw-w64-public] [PATCH 2/2] Added definition of d3d11 on x86_64

2014-12-04 Thread Kai Tietz
Patch for new dx-import-libary is ok. Thanks, Kai 2014-12-04 14:18 GMT+01:00 Martell Malone : > ping ? > > On Mon, Dec 1, 2014 at 2:49 PM, Martell Malone > wrote: >> >> Updated makefile patch to reflect >> >> From f433ca870f2bdadcf2ffdb80bd8099f3dcc90fab Mon Sep 17 00:00:00 2001 >> From: Martell

Re: [Mingw-w64-public] [PATCH 2/2] Added definition of d3d11 on x86_64

2014-12-04 Thread Martell Malone
ping ? On Mon, Dec 1, 2014 at 2:49 PM, Martell Malone wrote: > Updated makefile patch to reflect > > From f433ca870f2bdadcf2ffdb80bd8099f3dcc90fab Mon Sep 17 00:00:00 2001 > From: Martell Malone > Date: Mon, 1 Dec 2014 14:41:56 + > Subject: [PATCH 2/2] Updated makefiles d3d11 def > > --- >