in reply to Writing portable code
This avoids any runtime or compile-time determination of the OS. (It was already determined when the script/module was built.) And only the one file !void f(void) { #ifdef _WIN32 /* code */ #else /* other code */ #endif }
|
|---|