Added support for _MSC_VER < 1600.
authorDavid Anderson <dvander@alliedmods.net>
Sat Jul 28 13:54:17 2012 -0700 (2012-07-28)
changeset 10535bacccdffcb
parent 104 ef7531414fc6
child 106 8534dbfb8c1a
Added support for _MSC_VER < 1600.
include/keima_util.h
src/Utility.h
     1.1 --- a/include/keima_util.h	Sat Jul 28 13:47:46 2012 -0700
     1.2 +++ b/include/keima_util.h	Sat Jul 28 13:54:17 2012 -0700
     1.3 @@ -30,4 +30,17 @@
     1.4  # define KE_EXPORT
     1.5  #endif
     1.6  
     1.7 +#if defined(_MSC_VER) && _MSC_VER < 1600
     1.8 +typedef __int8 int8_t;
     1.9 +typedef unsigned __int8 uint8_t;
    1.10 +typedef __int16 int16_t;
    1.11 +typedef unsigned __int16 uint16_t;
    1.12 +typedef __int32 int32_t;
    1.13 +typedef unsigned __int32 uint32_t;
    1.14 +typedef __int64 int64_t;
    1.15 +typedef unsigned __int64 uint64_t;
    1.16 +#else
    1.17 +# include <stdint.h>
    1.18 +#endif
    1.19 +
    1.20  #endif // _include_keima_util_h_
     2.1 --- a/src/Utility.h	Sat Jul 28 13:47:46 2012 -0700
     2.2 +++ b/src/Utility.h	Sat Jul 28 13:54:17 2012 -0700
     2.3 @@ -21,7 +21,7 @@
     2.4  
     2.5  #include <assert.h>
     2.6  #include <stddef.h>
     2.7 -#include <stdint.h>
     2.8 +#include "../include/keima_util.h"
     2.9  #ifdef _MSC_VER
    2.10  # include <intrin.h>
    2.11  #endif