[Rubyinstaller-devel] cross compiler compatibility thought
rogerdpack at gmail.com
Tue Sep 22 11:54:06 EDT 2009
Had a thought about the whole "msvc versus mingw binaries compatible" thing...
The major rules seem to be:
* If you call ALLOC or ALLOC_N, use xfree and not free
* Don't call sprintf or printf in an extension, instead use
So my question is...can you define free to be xfree automatically, and
not require any changes?
#define free(x) xfree(x)
More information about the Rubyinstaller-devel