Fossil SCM

Fix build errors when using MSVC version that has no 'stdint.h'

ashepilko 2020-01-09 23:02 trunk
Commit c6ae8584b1bd13c70bdd9ea9890cc371b88d451b97456f78238727b227d27963
2 files changed +2 -1
--- src/config.h
+++ src/config.h
@@ -177,10 +177,12 @@
177177
178178
/*
179179
** MSVC does not include the "stdint.h" header file until 2010.
180180
*/
181181
#if defined(_MSC_VER) && _MSC_VER<1600
182
+ typedef __int8 int8_t;
183
+ typedef unsigned __int8 uint8_t;
182184
typedef __int32 int32_t;
183185
typedef unsigned __int32 uint32_t;
184186
typedef __int64 int64_t;
185187
typedef unsigned __int64 uint64_t;
186188
#else
187189
--- 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 @@
5151
** The default is to fuzz the Fossil-wiki translator. Use the --fuzztype TYPE
5252
** option to fuzz different aspects of the system.
5353
*/
5454
#include "config.h"
5555
#include "fuzz.h"
56
-#include <stdint.h>
5756
5857
#if LOCAL_INTERFACE
5958
/*
6059
** Type of fuzzing:
6160
*/
6261
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button