This was due to an issue with C++ which has issues with "const char **"
as a _partially_ constant pointer type and requires this modifying to
"char const* const*" to be fully const which can also be written
as "const char* const*" which fixes the API without requiring excessive
casts and removes the various GCC Compiler Warnings emitted when
-Wcast-qual is passed.
New string arithmetic is using pointers diff casted to long...
Trying to avoid C++11 features, the best option is to cast them to intptr_t instead of long
From upstream d9fba3fba3ec5f012297f1ec7dd0d1d5a55f3255
This only applies most of this commit, since it changes Allegro
code which I don't fully implement for ScummVM anyway, since all
path and file operations go via the ScummVM API anyway