AndrewBelt / osdialog

A cross platform wrapper for OS dialogs like file save, open, message boxes, inputs, color picking, etc.
Creative Commons Zero v1.0 Universal
122 stars 19 forks source link

snwprintf -> _snwprintf #27

Closed madronalabs closed 3 months ago

madronalabs commented 6 months ago

In Windows dev kit 10.0.22621.0 that installed with Visual Studio 2022, snwprintf is renamed to _snwprintf. To stay compatible with older versions, adding #define _snwprintf snwprintf probably works too.

madronalabs commented 3 months ago

I'm closing this PR because I saw that another PR https://github.com/AndrewBelt/osdialog/pull/17 has a better fix.