Nice fix Nathan! I had exactly the same issue today when I was trying to compile SDL.pas under D2010, but it worked in Lazarus...

It is now solved thanks to you

cheers,
Paul