diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-02-01 18:57:09 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-02-01 18:57:09 +0900 |
commit | ac40efdae723f850bfff62c0cddad130a37f425e (patch) | |
tree | 686827a1a92882a8e549bc25edfd56bd35e46a60 /src | |
parent | 2161f34f8cd4d4250248554c0e1786ad4c45de16 (diff) | |
download | gnunet-ac40efdae723f850bfff62c0cddad130a37f425e.tar.gz gnunet-ac40efdae723f850bfff62c0cddad130a37f425e.zip |
MYSQL: Use autoconf-based my_bool detection
NEWS: We now detect MySQL's strange, version-dependent my_bool type on configure.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/gnunet_mysql_compat.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/include/gnunet_mysql_compat.h b/src/include/gnunet_mysql_compat.h index 9fb9db30f..38c7ecc63 100644 --- a/src/include/gnunet_mysql_compat.h +++ b/src/include/gnunet_mysql_compat.h | |||
@@ -41,16 +41,6 @@ extern "C" | |||
41 | #endif | 41 | #endif |
42 | #endif | 42 | #endif |
43 | 43 | ||
44 | #ifndef LIBMARIADB | ||
45 | #if MYSQL_VERSION_ID >= 80000 | ||
46 | #define MYSQL_BOOL bool | ||
47 | #else | ||
48 | #define MYSQL_BOOL my_bool /* MySQL < 8 wants this */ | ||
49 | #endif | ||
50 | #else | ||
51 | #define MYSQL_BOOL my_bool /* MariaDB still uses my_bool */ | ||
52 | #endif | ||
53 | |||
54 | #if 0 /* keep Emacsens' auto-indent happy */ | 44 | #if 0 /* keep Emacsens' auto-indent happy */ |
55 | { | 45 | { |
56 | #endif | 46 | #endif |