|
From: Miro K. <mir...@gm...> - 2015-02-07 10:06:02
|
On Sat, Feb 7, 2015 at 7:13 AM, Keith Marshall < kei...@us...> wrote: > > Not saying it's a great practice, though. So I'd like to make it > compilable > > somehow, it works for other Unix flavors, incl. Cygwin. > > Really? You amaze me. Can you name any such Unix flavours? (FWIW, > GNU/Linux certainly isn't among them). > http://sourceforge.net/p/aranym/code/ci/master/tree/src/gui-sdl/file.cpp#l63 .. works on all Linuxes, FreeBSD, Solaris and Cygwin for good 10+ years. Via #ifdefs, but works. Like Eli says, your code snippet is not portable; in fact, it is just > plain broken. Guys, there's no need to show off, I'm not the author, I don't advocate for that code, I was just unaware of its nonportability, that's all. I'll try to patch it in a more portable way and I'm thankful you showed me the right way. |