In the header file:
#ifndef FOO_IMPLEMENTATION_USE_ONLY
#error This file is for inclusion in the FOO implementation only
#endif
In the files that are supposed to include it:
// Define this ONLY in the Foo implementation files
#define FOO_IMPLEMENTATION_USE_ONLY