[CIL users] sal.h annotations confuse the preprocessor

2009-03-10 Thread Tom Wright
endif int _$d; }; typedef struct _$P _$P; sal.h is imported by virtually all c header via crtdef.h. This is not a problem in visual studio 2005. So I'm working round this by falling back to visual studio 2005. But thought you might like to know this.

[CIL users] getting CIL to emit __declspec rather than __attribute__

2009-03-11 Thread Tom Wright
Hi all - We're trying to use CIL as a library to transform some C as part of a build process, targetting Visual C++. We can parse and transform the code, but when we serialise the transformed tree, the attributes are emitted in "__attribute__" form, rather than VC's __declspec form. At the start