Use appropriate macros for model compatibility API declarations (#25497)
### Description
This change corrects the signatures on the new precompiled model
compatibility APIs to use the recommended macros.
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
This fix addresses PR feedback from #25454 .
---------
Co-authored-by: Aditya Rastogi <adityar@ntdev.microsoft.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>