http://bugs.winehq.org/show_bug.cgi?id=69
------- Additional Comments From fgouget@codeweavers.com 2005-03-10 19:54 ------- Yeah, it's a hard bug. Adding support for things like '#import' will either require modifying the C compiler (not portable), or having a wrapper that knows how to process type library files and which heavily pre-processes the C source file to replace the '#import' line with the required definitions. '#import' might even require connecting with the linker so we can tell it to link with that type library file too.
It's really heavy, maybe so much so that it should be considered outside the scope of Winelib? After all code using stuff like '#import' is not really C/C++ code anymore. So this could be likened to extending gcc/g++ to support a C/C++ derivative, or reimplementing an MSVC compatible compiler.