Fossil SCM
Fix build errors when using MSVC version that has no 'stdint.h'
Commit
c6ae8584b1bd13c70bdd9ea9890cc371b88d451b97456f78238727b227d27963
Parent
31be929a307ed78…
2 files changed
+2
-1
+2
| --- src/config.h | ||
| +++ src/config.h | ||
| @@ -177,10 +177,12 @@ | ||
| 177 | 177 | |
| 178 | 178 | /* |
| 179 | 179 | ** MSVC does not include the "stdint.h" header file until 2010. |
| 180 | 180 | */ |
| 181 | 181 | #if defined(_MSC_VER) && _MSC_VER<1600 |
| 182 | + typedef __int8 int8_t; | |
| 183 | + typedef unsigned __int8 uint8_t; | |
| 182 | 184 | typedef __int32 int32_t; |
| 183 | 185 | typedef unsigned __int32 uint32_t; |
| 184 | 186 | typedef __int64 int64_t; |
| 185 | 187 | typedef unsigned __int64 uint64_t; |
| 186 | 188 | #else |
| 187 | 189 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -177,10 +177,12 @@ | |
| 177 | |
| 178 | /* |
| 179 | ** MSVC does not include the "stdint.h" header file until 2010. |
| 180 | */ |
| 181 | #if defined(_MSC_VER) && _MSC_VER<1600 |
| 182 | typedef __int32 int32_t; |
| 183 | typedef unsigned __int32 uint32_t; |
| 184 | typedef __int64 int64_t; |
| 185 | typedef unsigned __int64 uint64_t; |
| 186 | #else |
| 187 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -177,10 +177,12 @@ | |
| 177 | |
| 178 | /* |
| 179 | ** MSVC does not include the "stdint.h" header file until 2010. |
| 180 | */ |
| 181 | #if defined(_MSC_VER) && _MSC_VER<1600 |
| 182 | typedef __int8 int8_t; |
| 183 | typedef unsigned __int8 uint8_t; |
| 184 | typedef __int32 int32_t; |
| 185 | typedef unsigned __int32 uint32_t; |
| 186 | typedef __int64 int64_t; |
| 187 | typedef unsigned __int64 uint64_t; |
| 188 | #else |
| 189 |
-1
| --- src/fuzz.c | ||
| +++ src/fuzz.c | ||
| @@ -51,11 +51,10 @@ | ||
| 51 | 51 | ** The default is to fuzz the Fossil-wiki translator. Use the --fuzztype TYPE |
| 52 | 52 | ** option to fuzz different aspects of the system. |
| 53 | 53 | */ |
| 54 | 54 | #include "config.h" |
| 55 | 55 | #include "fuzz.h" |
| 56 | -#include <stdint.h> | |
| 57 | 56 | |
| 58 | 57 | #if LOCAL_INTERFACE |
| 59 | 58 | /* |
| 60 | 59 | ** Type of fuzzing: |
| 61 | 60 | */ |
| 62 | 61 |
| --- src/fuzz.c | |
| +++ src/fuzz.c | |
| @@ -51,11 +51,10 @@ | |
| 51 | ** The default is to fuzz the Fossil-wiki translator. Use the --fuzztype TYPE |
| 52 | ** option to fuzz different aspects of the system. |
| 53 | */ |
| 54 | #include "config.h" |
| 55 | #include "fuzz.h" |
| 56 | #include <stdint.h> |
| 57 | |
| 58 | #if LOCAL_INTERFACE |
| 59 | /* |
| 60 | ** Type of fuzzing: |
| 61 | */ |
| 62 |
| --- src/fuzz.c | |
| +++ src/fuzz.c | |
| @@ -51,11 +51,10 @@ | |
| 51 | ** The default is to fuzz the Fossil-wiki translator. Use the --fuzztype TYPE |
| 52 | ** option to fuzz different aspects of the system. |
| 53 | */ |
| 54 | #include "config.h" |
| 55 | #include "fuzz.h" |
| 56 | |
| 57 | #if LOCAL_INTERFACE |
| 58 | /* |
| 59 | ** Type of fuzzing: |
| 60 | */ |
| 61 |