|
From: | jemarch |
Subject: | Re: [pdf-devel] Compiling for windows |
Date: | Fri, 18 Apr 2008 20:59:45 +0200 |
User-agent: | Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.60 (powerpc-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
> A possible alternative would be to manage the situation using a more > fine-grained approach: to test capabilities for single functions (such > as the version of the `open' function existing in the system) using > autoconf. > > What do you (all) think about this? The well-known way to do it is with preprocessor conditionals and platform macros (e.g. __WIN32__). It leads to ugly code in certain situations but they're not that common. Yes. It is a common practice and it works. The autoconf approach is not bad. But it's capability based and we're gonna probably need much more preprocessor conditional checks (since we'll also need conditional checks). Correct me If I'm wrong. Well, I would say that we should always try to write generic code (able to work without changes in all the supported plattform) if possible.
[Prev in Thread] | Current Thread | [Next in Thread] |