diff options
author | Max Horn | 2010-11-01 16:02:47 +0000 |
---|---|---|
committer | Max Horn | 2010-11-01 16:02:47 +0000 |
commit | 06876671e51df44a5f28ea2c2798d7607b4f2d43 (patch) | |
tree | 50f0bcc55d1e3837969c816db84e1d1e28523aa8 /backends/platform/symbian | |
parent | e27b05ef358102fd60235a5f78d7d51e9f25a5f4 (diff) | |
download | scummvm-rg350-06876671e51df44a5f28ea2c2798d7607b4f2d43.tar.gz scummvm-rg350-06876671e51df44a5f28ea2c2798d7607b4f2d43.tar.bz2 scummvm-rg350-06876671e51df44a5f28ea2c2798d7607b4f2d43.zip |
SYMBIAN: Trigger a compiler error on systems where __GCC32__ is set, instead of producing incorrect code
svn-id: r54005
Diffstat (limited to 'backends/platform/symbian')
-rw-r--r-- | backends/platform/symbian/src/portdefs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backends/platform/symbian/src/portdefs.h b/backends/platform/symbian/src/portdefs.h index 2a26771a0a..6868faaa89 100644 --- a/backends/platform/symbian/src/portdefs.h +++ b/backends/platform/symbian/src/portdefs.h @@ -45,6 +45,13 @@ // and we _really_ don't wanna link with any other windows LIBC library! #if defined(__GCC32__) + FIXME: If the following macros are ever used, then this will lead + to serious errors, e.g. an almost guaranteed buffer overflow + in Common::String::format(). Do *NOT* re-#define vsnprintf to + vsprintf, it will lead to disaster! + This shouldn't be necessary anyway, since we have + backends/platform/symbian/src/vsnprintf.h + #define snprintf(buf,len,args...) sprintf(buf,args) #define vsnprintf(buf,len,format,valist) vsprintf(buf,format,valist) |