diff options
| author | Ariel Manzur | 2015-11-19 18:09:57 -0300 |
|---|---|---|
| committer | Ariel Manzur | 2015-11-19 18:09:57 -0300 |
| commit | ddbf2ffd1d01a6250ec59b2a76ae25c5f6e7941d (patch) | |
| tree | 173689b0de8ead5b04211691b7948806a6dc671a /core/ustring.cpp | |
| parent | f2727b8dd236ceda27a0c0fa28477b1f0558fe18 (diff) | |
| download | godot-ddbf2ffd1d01a6250ec59b2a76ae25c5f6e7941d.tar.gz godot-ddbf2ffd1d01a6250ec59b2a76ae25c5f6e7941d.tar.zst godot-ddbf2ffd1d01a6250ec59b2a76ae25c5f6e7941d.zip | |
Diffstat (limited to 'core/ustring.cpp')
| -rw-r--r-- | core/ustring.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp index 2dffdf066..72ad2a15e 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -44,6 +44,11 @@ #include <stdlib.h> #include <stdio.h> #endif + +#if defined(MINGW_ENABLED) || defined(_MSC_VER) +#define snprintf _snprintf +#endif + /** STRING **/ const char *CharString::get_data() const { @@ -3091,7 +3096,7 @@ String String::http_escape() const { res += ord; } else { char h_Val[3]; - snprintf(h_Val, 3, "%.2X", ord); + _snprintf(h_Val, 3, "%.2X", ord); res += "%"; res += h_Val; } |
