There seems to be a bug in fsl_adc.h (Using SDK_2.x_MKE04Z128xxx4 v2.5.0)
extern C block at at line 156 is never closed..
#if defined(__cplusplus)
extern "C" {
#endif
when including in a C++ project missing close brace errors reported. I think a close block is required in the header at end of file - i.e.
#if defined(__cplusplus)
}
#endif
#endif /* _FSL_ADC_H_ */