A small (and dangerous) C hack
jacquesmattheij.com
jacquesmattheij.com
Another option would have just to use two struct definitions:
in the header file he could put this: struct public { int a; int b;};
and in the implementation he could put this:
struct private { struct public pub; int c; int d;};
then when he needed so pass the public struct around externally he could just cast the private struct to public. This would end up being pretty much identical to the preprocessor hack but without needing to use the preprocessor.