Propose: Is to include the real header of "sdk/wxscintilla/include/wx/wxscintilla.h"
Reason: The use of "wx/wxscintilla.h" inside "include/sdk_common.h" requires all Plugins
that use sdk.h to have the search folder of "sdk/wxscintilla/include" even if they do NOT need "wx/wxscintilla.h".
Problem A: This results in extra search folder being needed.
Problem B: If the search does NOT exist and the PCH of sdk.h does NOT exist it results in error if sdh.h is included in plugin.
I have attached a patch that seems to fix these problem; but, I wish feedback on the idea.
Is this a good fix?
Is there a better fix?
Tim S.
Hi, Tim, thanks.
I'm generally Ok with your change.
Another method could be:
Do not create a new header file named "wxscintilla_cb.h", but replace all the text
#include "wx/wxscintilla.h"
with
#include "../sdk/wxscintilla/include/wx/wxscintilla.h"
On my machine:
/usr/include/codeblocks/wxscintilla/include/wx/wxscintilla.h
/usr/include/codeblocks/sdk.h