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.

drh 2022-01-27 03:57 trunk
Commit a27b3364e3eba1004a7c5a33db0131fd01e819500e9a8ae57f6ab90e5073fab1
1 file changed +2
--- src/config.h
+++ src/config.h
@@ -275,7 +275,9 @@
275275
*/
276276
#if !defined(HAVE_PLEDGE)
277277
# define fossil_pledge(A)
278278
#endif
279279
280
+/* Need a prototype for pikchr() */
281
+extern char *pikchr(const char*,const char*,unsigned in, int*,int*);
280282
281283
#endif /* _RC_COMPILE_ */
282284
--- 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

Keyboard Shortcuts

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