diff options
author | Max Horn | 2009-11-10 22:18:41 +0000 |
---|---|---|
committer | Max Horn | 2009-11-10 22:18:41 +0000 |
commit | c3905f60ee71a4794fb11705b204f5ab0dbd0778 (patch) | |
tree | 29924c1ef20288abce31d73cd80a1517b751e52c /common | |
parent | f107f7fc367c62c8af0659548d86d5418d794988 (diff) | |
download | scummvm-rg350-c3905f60ee71a4794fb11705b204f5ab0dbd0778.tar.gz scummvm-rg350-c3905f60ee71a4794fb11705b204f5ab0dbd0778.tar.bz2 scummvm-rg350-c3905f60ee71a4794fb11705b204f5ab0dbd0778.zip |
Move definition of stdint types to the only file that needs them (mpeg_player.h)
svn-id: r45820
Diffstat (limited to 'common')
-rw-r--r-- | common/scummsys.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/common/scummsys.h b/common/scummsys.h index 9cd503b751..428d9c3763 100644 --- a/common/scummsys.h +++ b/common/scummsys.h @@ -198,14 +198,6 @@ #define SMALL_SCREEN_DEVICE #endif - // FIXME: It is not the nicest idea to define these types - // on our own, since they should be defined in "stdint.h" - // for compilers with a C99 library. - typedef signed char int8_t; - typedef signed short int16_t; - typedef unsigned char uint8_t; - typedef unsigned short uint16_t; - #elif defined(_MSC_VER) #define scumm_stricmp stricmp @@ -218,28 +210,6 @@ #define NORETURN __declspec(noreturn) #define PLUGIN_EXPORT __declspec(dllexport) - // FIXME: It is not the nicest idea to define these types - // on our own, since they should be defined in "stdint.h" - // for compilers with a C99 library. Since MSVC does not - // supply any C99 headers, we must define these types - // on owr own, sadly SDL seems to do the same, but they - // define "uint32_t" as "unsigned __int32" and "int32_t" - // as "signed __int32", which leads to compilation errors - // when this file is included before SDL.h. - // We might either switch to the same definitions SDL.h - // uses or clean this up in a different way, it seems - // the only code relying on these types is the MPEG2 - // code, so maybe we can move this a bit more locally - // to the MPEG2 code. - typedef signed char int8_t; - typedef signed short int16_t; - typedef unsigned char uint8_t; - typedef unsigned short uint16_t; - - #if !defined(SDL_COMPILEDVERSION) || (SDL_COMPILEDVERSION < 1210) - typedef signed long int32_t; - typedef unsigned long uint32_t; - #endif #elif defined(__MINGW32__) |