|
This is already addressed in the current git version on github.
You can get hold of that version with:
git clone git://github.com/ingydotnet/inline-pm.git Inline
I'll also be releasing Inline-0.50_02 early next week, if you can wait until then.
Basically, you'll be able to make use of the PRE_HEAD option ... something like:
use Inline C => Config =>
PRE_HEAD => './my_headers_first';
where the file 'my_headers_first' contains the stuff that you want to have appear *before* the Inline::C standard includes.
You can instead specify the *code* in PRE_HEAD (but that can get a bit untidy):
PRE_HEAD => "#define something 1\n#include <h1.h>\n#include <h2.h>"
Seems that you're using c++ code. Would Inline::CPP be better for your purposes ?
Hmmm ... I *think* there are problems with Inline::CPP and cl at the moment. (That being the case, you might be able to help fix them ? :-)
Cheers,
Rob
|