Skip to content

Commit

Permalink
Avoid redefining types u32 and u16 when fossildelta.c is compiled as …
Browse files Browse the repository at this point in the history
…part of the amalgamation.
  • Loading branch information
danielk-1977 committed Jul 23, 2019
1 parent db2c2a2 commit 4a87741
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/misc/fossildelta.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "sqlite3ext.h"
SQLITE_EXTENSION_INIT1

#ifndef SQLITE_AMALGAMATION
/*
** The "u32" type must be an unsigned 32-bit integer. Adjust this
*/
Expand All @@ -47,6 +48,8 @@ typedef unsigned int u32;
typedef short int s16;
typedef unsigned short int u16;

#endif /* SQLITE_AMALGAMATION */


/*
** The width of a hash window in bytes. The algorithm only works if this
Expand Down

0 comments on commit 4a87741

Please sign in to comment.