@Rishabh_Bisht setting the __cplusplus macro worked with building our code. Thanks for the help
__cplusplus