Skip to content
Snippets Groups Projects
Commit ad4737c5 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

mingw32-w64 does not include ultoa()

parent 1791c0b2
No related branches found
No related tags found
No related merge requests found
Pipeline #5886 failed
......@@ -671,7 +671,6 @@ long xp_random(int n)
/* There may be a native GNU C Library function to this... */
/****************************************************************************/
#if !defined(_MSC_VER) && !defined(__BORLANDC__) && !defined(__WATCOMC__)
#if (defined(__GNUC__) && (__GNUC__ < 5)) || !defined(__MINGW32__)
char* ultoa(ulong val, char* str, int radix)
{
switch(radix) {
......@@ -691,6 +690,7 @@ char* ultoa(ulong val, char* str, int radix)
return(str);
}
#if (defined(__GNUC__) && (__GNUC__ < 5)) || !defined(__MINGW32__)
char* _i64toa(int64_t val, char* str, int radix)
{
switch(radix) {
......
......@@ -232,8 +232,8 @@ extern "C" {
#endif
#if !defined(_MSC_VER) && !defined(__BORLANDC__) && !defined(__WATCOMC__)
#if (defined(__GNUC__) && (__GNUC__ < 5)) || !defined(__MINGW32__)
DLLEXPORT char* ultoa(ulong, char*, int radix);
#if (defined(__GNUC__) && (__GNUC__ < 5)) || !defined(__MINGW32__)
DLLEXPORT char* _i64toa(int64_t, char*, int radix);
DLLEXPORT char* _ui64toa(uint64_t, char*, int radix);
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment