They are both pretty much platform-independent (you'll have to recompile of course) as long as you don't use any Windows API calls or other OS-specific stuff.