I'm not sure what the
was for, are you agreeing or not? Reason as to why not would be if more files included those two headers but they don't (unless I missed something) so it's not an issue at all.
And to make it clear, I mean #define in the code of ImageLoader.cpp before including those two headers, not in any build/project settings.
Oh, and wouldn't it produce "unused static function" errors in some cases? It still should be done though.
On the other hand this might make this part of code marginally faster and the built SFML a bit smaller if unused functions get stripped out, not that it matters for these parts of code.