Quote:Original post by MJPQuote:Original post by lmelior
And lastly, technically your code is Windows-only, so to say that I can "use the [compiler/IDE] of my choice" is not really accurate. :) If you need any clarification for the corrections above, feel free to ask.
Since he's using SDL all of the code *should* work fine on the other supported platforms...well except for that "WinMain" anyway. It's been a long time since I used SDL but I used to just declare an "int main" and SDL would map that to its internal WinMain. I can't imagine they would take that out, and it's an easy change to make if the tutorial is going to be considered multi-platform.
True enough, it should, though I believe those #pragma preprocessor directives are also windows-only. I'm not good enough to spot anything else just by looking, and I haven't tried compiling the code to look for more, as the proprietary RAR archive format is not friendly to Unix either.
EDIT: I guess those would just be ignored anyway, so perhaps WinMain is the only thing.