Fossil SCM
Make sure the pikchr() function has a prototype(). MSVC generates incorrect code (and does not give a warning) if the prototype is missing.
Commit
a27b3364e3eba1004a7c5a33db0131fd01e819500e9a8ae57f6ab90e5073fab1
Parent
be1c4d47f9a2874…
1 file changed
+2
+2
| --- src/config.h | ||
| +++ src/config.h | ||
| @@ -275,7 +275,9 @@ | ||
| 275 | 275 | */ |
| 276 | 276 | #if !defined(HAVE_PLEDGE) |
| 277 | 277 | # define fossil_pledge(A) |
| 278 | 278 | #endif |
| 279 | 279 | |
| 280 | +/* Need a prototype for pikchr() */ | |
| 281 | +extern char *pikchr(const char*,const char*,unsigned in, int*,int*); | |
| 280 | 282 | |
| 281 | 283 | #endif /* _RC_COMPILE_ */ |
| 282 | 284 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -275,7 +275,9 @@ | |
| 275 | */ |
| 276 | #if !defined(HAVE_PLEDGE) |
| 277 | # define fossil_pledge(A) |
| 278 | #endif |
| 279 | |
| 280 | |
| 281 | #endif /* _RC_COMPILE_ */ |
| 282 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -275,7 +275,9 @@ | |
| 275 | */ |
| 276 | #if !defined(HAVE_PLEDGE) |
| 277 | # define fossil_pledge(A) |
| 278 | #endif |
| 279 | |
| 280 | /* Need a prototype for pikchr() */ |
| 281 | extern char *pikchr(const char*,const char*,unsigned in, int*,int*); |
| 282 | |
| 283 | #endif /* _RC_COMPILE_ */ |
| 284 |