Skip to content

Commit ddc5c17

Browse files
committed
Improved exception function declarations for MSVC
1 parent f8edf31 commit ddc5c17

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### ?.?.? (????-??-??)
2+
3+
* Improved compatibility with MSVC
4+
5+
16
### 4.2.0 (2017-08-03)
27

38
* Switched to jbuilder and topkg

src/sqlite3_stubs.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ static inline void raise_with_two_args(value v_tag, value v_arg1, value v_arg2)
170170
CAMLnoreturn;
171171
}
172172

173-
static inline void raise_sqlite3_InternalError(char *msg) Noreturn;
173+
CAMLnoreturn_start
174+
static inline void raise_sqlite3_InternalError(char *msg)
175+
CAMLnoreturn_end;
174176

175177
static inline void raise_sqlite3_InternalError(char *msg)
176178
{
@@ -183,7 +185,9 @@ static inline void range_check(int v, int max)
183185
raise_with_two_args(*caml_sqlite3_RangeError, Val_int(v), Val_int(max));
184186
}
185187

186-
static void raise_sqlite3_Error(const char *fmt, ...) Noreturn;
188+
CAMLnoreturn_start
189+
static void raise_sqlite3_Error(const char *fmt, ...)
190+
CAMLnoreturn_end;
187191

188192
static void raise_sqlite3_Error(const char *fmt, ...)
189193
{

0 commit comments

Comments
 (0)