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 }
In reply to Re: Writing portable code
by syphilis
in thread Writing portable code
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |