Skip to content

Commit

Permalink
Fix build on Windows XP
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst committed Nov 17, 2024
1 parent 38ecc52 commit a199ab9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fluidsynth.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,10 @@ int main(int argc, char **argv)
static const char optchars[] = "a:C:c:dE:f:F:G:g:hijK:L:lm:nO:o:p:QqR:r:sT:Vvz:";

#if defined(_WIN32)
// WC_ERR_INVALID_CHARS is only supported on Windows Vista and newer. To support older Windows, our only chance is to use zero for this flag.
#ifndef WC_ERR_INVALID_CHARS
#define WC_ERR_INVALID_CHARS 0
#endif
char **argv = NULL;
// console output will be utf-8
SetConsoleOutputCP(CP_UTF8);
Expand Down

0 comments on commit a199ab9

Please sign in to comment.