I was thinking about it (note this thread is from 2012!!!) and finally I defined my own types. As I said, Delphi don't had ctype (or don't have it in some of the most used versions) so that was the best solution.

You can see the final solution here (for Allegro 5, but for Allegro 4 is the same).