From cba710ff8a982c57d27f9b2fcf796c049bd684bd Mon Sep 17 00:00:00 2001 From: Alex Bevilacqua Date: Sun, 21 Nov 2010 13:43:56 +0000 Subject: [PATCH] ASYLUM: don't use itoa() as it's not portable (use sprintf() instead) git-svn-id: http://asylumengine.googlecode.com/svn/trunk@564 0bfb4aae-4ea4-11de-8d8d-752d95cf3e3c --- engines/asylum/resources/actor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engines/asylum/resources/actor.cpp b/engines/asylum/resources/actor.cpp index a1cded3adb7..14f11b2c6f8 100644 --- a/engines/asylum/resources/actor.cpp +++ b/engines/asylum/resources/actor.cpp @@ -1422,7 +1422,9 @@ void Actor::updateNumbers(int32 reaction, int32 x, int32 y) { _numberStringY = y + 8; _numberStringWidth = 40; - itoa(_numberValue01, _numberString01, 10); + // XXX use sprintf instead of itoa as itoa isn't part of standard + // C++ and therefore isn't available in GCC + sprintf(_numberString01, "%d", _numberValue01); _numberFlag01 = 1; }