Editing only one line in gdriver.h is not a big problem, I can live with that.
But I found one more problem related to gcc duplicate const error. Customised keyboard layout requires GVSpecialKey declaration in the main sketch. After adding #include "src/gwin/gwin_keyboard_layout.h" to the sketch, UECIDE shows the following two errors:
• Error at line 53 in file gwin_keyboard_layout.h:
‣ duplicate 'const'
• Error at line 54 in file gwin_keyboard_layout.h:
‣ duplicate 'const'
Compiling Failed
Is there any way around this issue? Perhaps adding some gcc compilation flags? I would like to avoid modifying uGFX source if possible.