mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-07-15 14:24:22 +08:00
Even more Windows fixes
This commit is contained in:
parent
1d7d3c39d2
commit
41c7e01ec7
@ -96,7 +96,11 @@ typedef struct GOptionContext {
|
|||||||
#define g_free free
|
#define g_free free
|
||||||
#define g_realloc realloc
|
#define g_realloc realloc
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#define g_strdup _strdup
|
||||||
|
#else
|
||||||
#define g_strdup strdup
|
#define g_strdup strdup
|
||||||
|
#endif
|
||||||
|
|
||||||
#define G_STR_DELIMITERS "_-|> <."
|
#define G_STR_DELIMITERS "_-|> <."
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ int vasprintf(char **ret, const char *format, va_list ap) {
|
|||||||
return -1;
|
return -1;
|
||||||
if ((result = malloc(len+1)) == NULL)
|
if ((result = malloc(len+1)) == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
if ((retval = _vsprintf_s(result, len+1, format, ap)) == -1) {
|
if ((retval = vsprintf_s(result, len+1, format, ap)) == -1) {
|
||||||
free(result);
|
free(result);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user