From: <sr...@jt...> - 2003-06-26 09:11:15
|
Zartaj, That's a good question, and in fact some people using ICU do use it this way. I suggest to replace platform.h with a tree of IFDEFs and "#include my_solaris_platform.h" , for example. The problem is that different users define a 'platform' differently. If at compile time, everything could be determined automatically, there would be no need for configure. But you would end up needing a #define to tell you which platform-specific subdirectory to look in. (as I see it). platform.h is the only file which changes. (or, pwin32.h on windows, etc.) So it's a good suggestion, I'm just not sure how to implement it. Any ideas welcome. Regards, Steven On Wednesday, June 25, 2003, at 05:15 PM, Zartaj T. Majeed wrote: > Is it true that if ICU is built with the same configure options > on different platforms all public header files will be the same > except for platform.h? > If so, why not install platform.h in a platform-specific subdirectory > of the include directory. Then a single include directory can be > used for cross-platform development. |