Fix Win32 build
This commit is contained in:
parent
32589e5c3e
commit
be3fcd9b7e
@ -102,7 +102,7 @@ const char *get_dos_charset(const char *cpfrom)
|
|||||||
#if defined(__WIN32__)
|
#if defined(__WIN32__)
|
||||||
int cp = GetOEMCP();
|
int cp = GetOEMCP();
|
||||||
static char cpto[10]="";
|
static char cpto[10]="";
|
||||||
if (cp) snprintf(cpto, sizeof(cpto), "CP%u", cp);
|
if (cp) gsprintf(PRINTF_DECLARE_BUFFER(cpto), "CP%u", cp);
|
||||||
else cpto[0]='\0';
|
else cpto[0]='\0';
|
||||||
return cpto;
|
return cpto;
|
||||||
#elif defined(__MSDOS__) || defined(__OS2__)
|
#elif defined(__MSDOS__) || defined(__OS2__)
|
||||||
|
Reference in New Issue
Block a user