Fossil

Check-in [131bef42]
Login

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

Overview
Comment:Not all MSVC versions understand __declspec(noreturn)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:131bef423401fb10d0289e927f2854bd0d5b84add79196be19e72af73642511c
User & Date: jan.nijtmans 2017-03-24 08:55:27
Context
2017-03-24
20:43
Update the built-in SQLite to the third 3.18.0 beta. check-in: af225fea user: drh tags: trunk
08:55
Not all MSVC versions understand __declspec(noreturn) check-in: 131bef42 user: jan.nijtmans tags: trunk
02:54
Update the built-in SQLite to the second 3.18.0 beta. check-in: c8a43002 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/config.h.

227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
#endif

/*
** A marker for functions that never return.
*/
#if defined(__GNUC__) || defined(__clang__)
# define NORETURN __attribute__((__noreturn__))
#elif defined(_MSC_VER)
# define NORETURN __declspec(noreturn)
#else
# define NORETURN
#endif

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

#endif /* _RC_COMPILE_ */







|











227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
#endif

/*
** A marker for functions that never return.
*/
#if defined(__GNUC__) || defined(__clang__)
# define NORETURN __attribute__((__noreturn__))
#elif defined(_MSC_VER) && (_MSC_VER >= 1310)
# define NORETURN __declspec(noreturn)
#else
# define NORETURN
#endif

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

#endif /* _RC_COMPILE_ */