aboutsummaryrefslogtreecommitdiff
path: root/common/scummsys.h
AgeCommit message (Collapse)Author
2012-03-17ALL: Make use of defined() for the preprocessor consistent.Johannes Schickel
This does not change the use of defined for some NDS source files, since they seem to be (based on?) third party code.
2012-03-17COMMON: Use defined() instead of defined in preprocessor macros.Johannes Schickel
Thanks to clone2727 for noticing this.
2012-03-17ALL: Use GCC_ATLEAST().Christoph Mallon
2012-03-17COMMON: Add GCC_ATLEAST(major, minor) to simplify testing for versions of GCC.Christoph Mallon
2011-11-17COMMON: Move <new> include into scummsys.h.Alyssa Milburn
The header contains forbidden symbols on some platforms, and the simplest solution seems to be to include it here. This also includes it from all the portdefs.h files, except the Symbian one. Probably the FIXME and the #if can be removed once it's known to work.
2011-10-11Symbian: Must define scumm_va_copy also for Symbiananotherguest
2011-06-18COMMON: Add vformat() function (Common::String analog to vsprintf)Max Horn
2011-06-01COMMON: Implement two simple workaround wrappers for _vsnprintf and ↵Johannes Schickel
_snprintf for MSVC. This should assure vsnprintf and snprintf will now also always null terminate the result even for MSVC. Currently the functions are placed in scummsys.h, but that causes us to include two standard C library headers there (for MSVC at least). This is not particulary nice, so we should think of a better solution here.
2011-06-01COMMON: Add note about us defining vsnprintf as _vsnprintf for older MSVC ↵Johannes Schickel
versions.
2011-06-01COMMON: Add comment about MSVC's _snprintf.Johannes Schickel
This includes a FIXME, since _snprintf behaves differently to snprintf. Not only in the return value (which is a minor difference, since we usually do not use it), but also since it does not always include a terminating null.
2011-06-01COMMON: Move SDL endian check a bit downMax Horn
2011-05-31COMMON: Include SDL_endian.h instead of SDL_byteorder.hMax Horn
2011-05-31COMMON: Simplify OverlayColor definitionMax Horn
This typedef still should be moved somewhere else. Maybe a header file of its own?
2011-05-31COMMON: Move scumm_str(n)icmp declaration to str.hMax Horn
2011-05-31COMMON: Move some weird WinCE/MSVC snprintf-#define aroundMax Horn
2011-05-31COMMON: Shorten endianess / mem align guessing logic in scummsys.hMax Horn
2011-05-31COMMON: Move more stuff from scummsys.h to portdefs.hMax Horn
2011-05-31COMMON: Move some code from scummsys.h to relevant portdefs.h filesMax Horn
2011-05-23COMMON: Provide our own implementations for scumm_str(n)icmpMax Horn
This takes up a tiny little bit of extra binary size, but gets rid of some awful #ifdef hackery.
2011-05-16IPHONE/OSX: Updated xcode projectOystein Eftevaag
2011-05-14COMMON: RemoveAvoid redundant typedefs if config.h is presentMax Horn
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-05-10COMMON: Refactor typedefs a bitMax Horn
2011-05-09COMMON: Refactor scummsys.hMax Horn
2011-05-09COMMON: Do not #undef _MSC_VERMax Horn
2011-05-09COMMON: If config.h is present, don't use hardcoded settings from scummsys.hMax Horn
2011-05-09COMMON: Unify definition of scumm_str(n)icmpMax Horn
2011-05-09N64: Remove (u)int64 typedefs from common/scummsys.hMax Horn
2011-05-02ALL: Mark printf and various other symbols as forbiddenMax Horn
Right now, a few places in the frontend code still use printf and consorts. We mark the affected files with a FIXME for now, and add a dedicated exception for each. To be fixed! Also tweak FORBIDDEN_SYMBOL_REPLACEMENT to hopefully really always enforce a compiler error
2011-04-12COMMON: Drop totally obsolete & outdated DEC C++ 'support'Max Horn
2011-03-19COMMON: Removed custom PI define (M_PI should be used instead)md5
2011-03-19COMMON: Enable math constants under Visual Studiomd5
2011-02-10CONFIGURE: Add basic support for ICC.Johannes Schickel
svn-id: r55862
2010-11-19COMMON: Use user include instead of system include to remove lots of ↵Lars Persson
compiler warnings for symbian svn-id: r54371
2010-10-30ALL: Add code to help stop people from accidentally using "bad" APIsMax Horn
A new header file common/forbidden.h is included by scummsys.h and it re-#defines numerous symbols like fopen(), fread(), system(), etc. with garbage, in order to provoke compile errors in any code using them. If a .cpp file really *must* use any of these (e.g. because it is a backend file), then these redefinitions can be disabled by #defining FORBIDDEN_SYMBOL_ALLOW_ALL as the first thing in the .cpp file. Whenever this is done, an explanatory comment should be added. Note that this system cannot catch all "bad" usages (notably the Lua code in the sword25 engine), as it can only work if scummsys.h is included. svn-id: r53961
2010-10-12JANITORAL: Clean trailing whitespaces.Jordi Vilalta Prat
svn-id: r53160
2010-09-20PSP: switch from wrapping memcpy to defining our own memcpyYotam Barnoy
The advantage is that we get to do inlining and even use lwl and lwr instructions where appropriate. We have to do it ourselves because the PSP doesn't tolerate built-in instructions, but also we have a more efficient memcpy than the lib's. svn-id: r52817
2010-08-19DINGOO: new port. Patch #3039277Eugene Sandulenko
svn-id: r52210
2010-07-17Remove PalmOS portMax Horn
svn-id: r50964
2009-12-30Add Nintendo 64 port to trunk.Fabio Battaglia
svn-id: r46773
2009-11-29COMMON: Replace NORETURN by NORETURN_PRE & NORETURN_POSTMax Horn
svn-id: r46205
2009-11-23Remove SCUMMVM_USE_LONG_INTMax Horn
svn-id: r46103
2009-11-10Move definition of stdint types to the only file that needs them (mpeg_player.h)Max Horn
svn-id: r45820
2009-11-10Add some FIXME comments about defining types from stdint.h on our own.Johannes Schickel
svn-id: r45816
2009-09-27Backported NDS changes from 1.0.0 branch to trunkMax Horn
svn-id: r44426
2009-09-24Removed the MSVC-specific pragmas for disabling warnings. These are now in ↵Filippos Karapetis
ScummVM_Global.vsprops and thus not needed in scummsys.h svn-id: r44283
2009-09-22Fix warning in gcc 3.3.5, by changing FORCEINLINE definition.Johannes Schickel
svn-id: r44262
2009-09-11fix duplicate definition of FORCEINLINE on mingw toolchainsNorbert Lange
svn-id: r44033
2009-09-11Slightly modified version of Patch #2838562: Improve endian.h and stream.hMax Horn
svn-id: r44027
2009-03-25Allow building of psp backend via configure (Part 1 - Still need to add the ↵Joost Peters
fixup + EBOOT packing steps). Thanks dhewg and fingolfin for assistance. :) svn-id: r39693