At the top of the code? Not needed.

    -Dprivate=public -Dprotected=public -Dclass=struct

In your compiler's command line. Oh, yes, and I added "protected" too, you forgot that one. Of course, we all know this is bad practice.