From: Sven P. <Sve...@ae...> - 2005-09-11 19:32:04
|
Am Samstag, 10. September 2005 22:40 schrieb Richard Rauch: > [...] > You neglect to include Interix as an MS-Windows+POSIX type environment. > (It's POSIX enough that a UNIXish source package system for BSDs > and LINUX will build on it, but is decidedly an MS product and of > course runs only under MS-Windows.) I have to admit that I never had enough energy to look at yet another POSIX-like environment on Windows, but perhaps you're right and I should do this... > [...] But getting a non-POSIX type of user to install a POSIX environment > can be like getting Richard Stallman to use MS-Word. [...] :-) What I'm basically arguing for is that even people who choose to ignore POSIX/autotools might be better off using feature-based #ifdefs most of the time: You can isolate the platform-based #ifdefs into a single place to #define the needed feature-based one, and use only the latter in the rest of your code. And for autoconf projects on a non-POSIX platform this boils down to providing a config.h.in filled out by hand, which is quite easy if you know your platform. In any case: 99% of the code should be free of platform-based #ifdefs. Perhaps I should make this clearer on my page... Thanks for the comments, S. |