Fossil

Check-in [36e7558a]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Move macro definition to config.h which is included everywhere to fix build failure reported on mailing list with "configure --json --with-tcl --with-th1-docs".
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:36e7558a11598f3e27751272415c938e70312121
User & Date: andybradford 2016-11-06 16:10:45
References
2016-11-06
16:40
Correct commit that had mistake in macro definition in [36e7558a11598]. check-in: 427c34fe user: andybradford tags: trunk
16:38
Correct incorrect commit in [36e7558a11598] (with incorrectly committed code) Closed-Leaf check-in: ae424dc1 user: andybradford tags: mistake
Context
2016-11-06
16:40
Correct commit that had mistake in macro definition in [36e7558a11598]. check-in: 427c34fe user: andybradford tags: trunk
16:38
Correct incorrect commit in [36e7558a11598] (with incorrectly committed code) Closed-Leaf check-in: ae424dc1 user: andybradford tags: mistake
16:10
Move macro definition to config.h which is included everywhere to fix build failure reported on mailing list with "configure --json --with-tcl --with-th1-docs". check-in: 36e7558a user: andybradford tags: trunk
03:02
Fix wiki syntax error check-in: 000f2193 user: andygoth tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/config.h.

225
226
227
228
229
230
231







232
*/
#if defined(__GNUC__) || defined(__clang__)
# define NORETURN __attribute__((__noreturn__))
#else
# define NORETURN
#endif








#endif /* _RC_COMPILE_ */







>
>
>
>
>
>
>

225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
*/
#if defined(__GNUC__) || defined(__clang__)
# define NORETURN __attribute__((__noreturn__))
#else
# define NORETURN
#endif

/*
** Number of elements in an array
*/
#ifndef fossil_sizeof
# define count(X) (sizeof(X)/sizeof(X[0]))
#endif

#endif /* _RC_COMPILE_ */

Changes to src/main.c.

47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#  include "tcl.h"
#endif
#ifdef FOSSIL_ENABLE_JSON
#  include "cson_amalgamation.h" /* JSON API. */
#  include "json_detail.h"
#endif

/*
** Number of elements in an array
*/
#define count(X)  (sizeof(X)/sizeof(X[0]))

/*
** Size of a UUID in characters
*/
#define UUID_SIZE 40

/*
** Maximum number of auxiliary parameters on reports







<
<
<
<
<







47
48
49
50
51
52
53





54
55
56
57
58
59
60
#  include "tcl.h"
#endif
#ifdef FOSSIL_ENABLE_JSON
#  include "cson_amalgamation.h" /* JSON API. */
#  include "json_detail.h"
#endif






/*
** Size of a UUID in characters
*/
#define UUID_SIZE 40

/*
** Maximum number of auxiliary parameters on reports