
22 May
2006
22 May
'06
1:43 a.m.
Hello Ross, Monday, May 22, 2006, 3:59:17 AM, you wrote:
cpphs --noline -D__HUGS__ -D__HUGS_VERSION__=2005 -DSIZEOF_HSINT=4 -DSIZEOF_HSWORD=4
Cabal already adds -D__HUGS__ when building for Hugs, __HUGS_VERSION__ isn't used, and the SIZEOF's aren't universally valid. For GHC, the package gets them from MachDeps.h (an undocumented interface). Doing it portably probably requires autoconfery.
but what to do if library depends on Hugs version and word size of target machine? GHC can solve such problems by providing all the necessary preprocessor symbols but Hugs can't :( -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com