Skip to content

Commit 3ffb98d

Browse files
committed
Removed inline macros
1 parent 3aa880e commit 3ffb98d

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/dune

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
(library
22
(public_name sqlite3)
33
(c_names sqlite3_stubs)
4-
(c_flags
5-
(:standard) (:include c_flags.sexp) -O2 -fPIC -DPIC
6-
-Wno-keyword-macro
7-
)
4+
(c_flags (:standard) (:include c_flags.sexp) -O2 -fPIC -DPIC)
85
(c_library_flags (:include c_library_flags.sexp) -lpthread)
96
)
107

src/sqlite3_stubs.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,11 @@
4040
#include <sqlite3.h>
4141

4242
#if __GNUC__ >= 3
43-
# define inline inline __attribute__ ((always_inline))
4443
# if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly) && !__APPLE__
45-
# define __unused __attribute__ ((unused))
44+
# define __unused __attribute__ ((unused))
4645
# endif
4746
#else
4847
# define __unused
49-
# ifdef inline
50-
# undef inline
51-
# endif
52-
# define inline
5348
#endif
5449

5550
#if SQLITE_VERSION_NUMBER >= 3003007 && !SQLITE3_DISABLE_LOADABLE_EXTENSIONS

0 commit comments

Comments
 (0)