Open GoogleCodeExporter opened 9 years ago
Hi, I'll look into some of these changes.
Is there a standard MinGW #define I can check for to #ifdef with?
Some specific points:
- CreateSemaphoreA: I'm surprised this didn't cause problems with other
versions of
MSVC, actually
- The uint8 stuff is bizarre. Is MinGW defining them itself? That seems like it
would
break ten million programs.
- The "#endif STBI_NO_WRITE" stuff is totally a bug, it's supposed to be
"#endif //
STBI_NO_WRITE", but apparently VC6 doesn't complaint about it.
- I don't understand why you'd make rom_images not extern. Then again, your
command
line doesn't include pics.c, so maybe you #included it or concatenated it to
imv.c
instead?
- I don't understand why you had to move the definition of 'int temp'. What was
the
error as it was?
And yes, the lack of the stb_barrier() is probably going to introduce race
conditions
which is going to lead to random crashes, hangs, or misbehaviors of some kind. I
think there's a standard windows barrier I can call instead--it's not available
in
MSVC6 which is why I did it the way I did, but probably you're using more recent
windows headers with mingw anyway.
Original comment by nothings...@gmail.com
on 30 Nov 2007 at 8:43
Original issue reported on code.google.com by
the...@gmail.com
on 30 Nov 2007 at 8:27