Changes between Version 1 and Version 2 of Ticket #63074, comment 8


Ignore:
Timestamp:
Jun 23, 2021, 2:57:30 PM (3 years ago)
Author:
mojca (Mojca Miklavec)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #63074, comment 8

    v1 v2  
    4141mp_cv_sqlite_version=
    4242}}}
     43
     44Running `cc -E test.c` on the following source code:
     45{{{
     46#include <sqlite3.h>
     47#ifndef SQLITE_VERSION_NUMBER
     48#  error "SQLITE_VERSION_NUMBER undefined"
     49#else
     50int mp_sqlite_version = SQLITE_VERSION_NUMBER;
     51#endif
     52}}}
     53results in the following on Ubuntu where `cc` is in fact `gcc`:
     54{{{
     55# 5 "test.c"
     56int mp_sqlite_version =
     57# 5 "test.c" 3 4
     58                       3022000
     59# 5 "test.c"
     60                                            ;
     61}}}
     62while clang would generate
     63{{{
     64int mp_sqlite_version = 3019003;
     65}}}
     66which works.
     67
     68You can easily verify the behaviour easily by using any `gcc-mp-X` on macOS.