From: J D. <d3...@gm...> - 2010-11-21 00:54:49
|
On Sat, Nov 20, 2010 at 3:23 PM, Alois Schloegl <alo...@gm...> wrote: > > > On Sat, Nov 20, 2010 at 10:36 PM, Alois Schloegl <alo...@gm...> > wrote: >> >> Moreover, in the past (about half a year ago) it was possible to use mingw >> as cross-compiler for the same project having the user-defined function >> sopen. And it compiled also with MinGW on Windows. So, it seems to me that >> some changes in Mingw might be the cause for this conflict. >> >> >> > > I investigated the issue in more detail. The conflict is triggered when > including <zlib.h> in my project. Without including <zlib.h> no naming > conflict occurs. (so its not due to a change in MinGW). <zlib.h> includes > <zconf.h>, which includes <unistd.h> which includes <io.h>. Maybe the use of > MS C library specific extensions can be disentangle from standard gcc > functions. > > Please note also, that according to this site > http://msdn.microsoft.com/en-us/library/w7sa2b22%28VS.80%29.aspx > the use of sopen has been deprecated in VC2005 (and presumably later). > > Would it be a viable option, to use DEFINES for avoiding name space > pollution from legacy MS C library ? probably something like WINVER ? > > Alois > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > MinGW-users mailing list > Min...@li... > > This list observes the Etiquette found at > http://www.mingw.org/Mailing_Lists. > We ask that you be polite and do the same. Disregard for the list etiquette > may cause your account to be moderated. > > _______________________________________________ > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > |