SQLite Forum

Incorrect C code in sqlite3.c
Login
In the file sqlite3.c (version sqlite-autoconf-3320000) we see at line 494 the code:
```
    #if SQLITE_MUTEX_PTHREADS
```
and at line 503:
```
    #if SQLITE_NOINLINE
```
though when these values are set through the defines at line 16509 and 13514 as:
```
    #    define SQLITE_MUTEX_PTHREADS 
```
and
```
    #  define SQLITE_NOINLINE
```

this results in invalid C code.
It is suggested to replace the `#if` statements with `#ifdef` statements and remove the 
```
  #else
    #    define SQLITE_MUTEX_PTHREADS
```

Same accounts also for line 497:
```
  #if SQLITE_MUTEX_W32
```
and line 485:
```
  #if SQLITE_MUTEX_NOOP
```
 
this might also be necessary on other places where empty defines are defined.