aboutsummaryrefslogtreecommitdiff
path: root/common/scummsys.h
AgeCommit message (Collapse)Author
2018-04-04COMMON: Add WARN_UNUSED_RESULT to scummsys.hAdrian Frühwirth
2017-11-10COMMON: Use C++11 static_assert when availableColin Snover
This improves the output of static assertions in all compilers, and prevents problems in MSVC 2015 where the mechanism for triggering a compilation error in C++98 mode may cause errors when that compiler builds in release mode. Fixes Trac#10154.
2017-09-30COMMON: Remove unused OverlayColor typedefBastien Bouclet
2017-09-30BUILD: Define pointer sized integer types and remove SCUMM_64BITSBastien Bouclet
2017-03-09BUILD: Fixed macro redefinition warning for 64 bits buildsPeter Kohaut
2017-02-06BUILD: Define SCUMM_64BITS on 64 bits platforms when not using configureThierry Crozat
This for example fixes the compilation of the fullpipe engine on 64 bits platforms when using create_project.
2017-01-14COMMON: Define STATIC_ASSERT for all portsColin Snover
Ports with -DNONSTANDARD_PORT need this too.
2017-01-08COMMON: Add STATIC_ASSERT macro to scummsys.hColin Snover
2016-12-19COMMON: Add stddef.h to scummsys.h for ptrdiff_tColin Snover
2016-08-13Merge pull request #790 from salty-horse/clang_fixesWillem Jan Palenstijn
ALL: Don't use 'defined' in macro definitions
2016-07-28Revert "BUILD: Fix test compilation with event recorder enabled"Bastien Bouclet
This reverts commit 1f8667c5d949070035390531e4f10c0f945d7352.
2016-07-23ALL: Don't use 'defined' in macro definitionsOri Avtalion
This is undefined behavior and clang warns about it. See <http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20160118/147239.html>.
2016-05-23BUILD: Fix test compilation with event recorder enabledEugene Sandulenko
2016-04-063DS: Initial commitThomas Edvalson
2015-12-12COMMON: A few formatting fixes.Johannes Schickel
2015-09-28CREATE_PROJECT: Add support for Visual Studio 2015Paul Gilbert
2014-10-28COMMON: Remove trailing whitespaceFilippos Karapetis
2014-04-28Merge pull request #426 from sunmax/masterEugene Sandulenko
PS2: Pull request to master for latest PS2 code
2014-02-18COMMON: Make GPL headers consistent in themselves.Johannes Schickel
2014-01-19PS2: scummsys.h (u)int64 is "long" for PS2Max Lingua
2013-11-06COMMON: Define int64 and uint64 if HAVE_CONFIG_H isn't setFilippos Karapetis
This fixes compilation of sword25's pluto with Visual Studio. The issue has been revealed with commit 34169a81. The other data types are defined in scummsys.h, thus only the missing int64 and uint64 defines are set.
2013-09-27COMMON: Make Coverity 6.6.1 happierEugene Sandulenko
Apparently their tools do not include __has_feature clang extension. I've submitted the bugreport to them but in the meantime let's have this define in the system.
2013-08-02COMMON: Define all Unix98/BSD math constants in scummsys.h.Johannes Schickel
This should fix compilation on mingw64 with --enable-c++11 and also make sure the constants are present on other systems for the uncommon case they might be missing.
2013-08-02COMMON: Add comment explaining reason for defining math constants.D G Turner
2013-07-31COMMON: Move definition of math constants to scummsys header.D G Turner
This should have no effect on common/math.h as scummsys is included at the top anyway, but this will fix compilation on some toolchains when strict ANSI language compliance is enabled i.e. -std=c++11, rather than -std=gnu11. This causes an issue as a side effect is to set a guard which disables various non-standard defines in the system headers i.e. the M_PI and M_SQRT1_2 constant definitions in the MinGW x86_64 toolchain on buildbot. By moving this into scummsys.h after the point of system math.h inclusion, we can ensure that M_PI etc. are always present.
2013-02-23ALL: Fix typo (existant->existent)Willem Jan Palenstijn
2013-01-09COMMON: Add a header for C++11 keywords for pre-C++11 compilers.Johannes Schickel
This currently adds defines for nullptr and override, so we can use them in pre-C++11 compilers, while taking advantage of them with C++11 compilers.
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