I'm amazed to not find the IMPORT/EXPORT directives in sqVirtualMachine.h IMO, the right solution is already sketched in minheadless:
The relevant section is:
then we would just have to declare — |
If sqConfig.h WANTS to #define fseek/ftell as fseeko and ftello, then it just has to first #include <stdio.h>. Then any other .c including first "sqConfig.h", then <stdio.h> should just work. — |
In reply to this post by David T Lewis
Problem is that stdio might include features.h — |
In reply to this post by David T Lewis
and sqConfig should no define fseek/ftell. — |
In reply to this post by David T Lewis
Agree — |
In reply to this post by David T Lewis
I've tried adding EXPORT/IMPORT declarations in sqVirtualMachine.h, but it's not such a good idea
I've sketched a lightweight solution in branch https://github.com/OpenSmalltalk/opensmalltalk-vm/tree/fix_include_order. — |
Free forum by Nabble | Edit this page |