Skip to content

Commit ae808b5

Browse files
committed
fix compilation with SQLCIPHER_OMIT_LOG
reported in PR sqlcipher#504
1 parent 3fe4179 commit ae808b5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/crypto.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,6 @@ int sqlcipher_codec_ctx_integrity_check(codec_ctx *, Parse *, char *);
326326

327327
int sqlcipher_set_log(const char *destination);
328328
void sqlcipher_set_log_level(unsigned int level);
329-
void sqlcipher_log(unsigned int tag, const char *message, ...);
330329

331330
#define SQLCIPHER_LOG_NONE 0x00
332331
#define SQLCIPHER_LOG_ERROR 0x01
@@ -336,6 +335,12 @@ void sqlcipher_log(unsigned int tag, const char *message, ...);
336335
#define SQLCIPHER_LOG_TRACE 0x10
337336
#define SQLCIPHER_LOG_ALL 0xffffffff
338337

338+
#ifdef SQLCIPHER_OMIT_LOG
339+
#define sqlcipher_log(tag, message, ...)
340+
#else
341+
void sqlcipher_log(unsigned int tag, const char *message, ...);
342+
#endif
343+
339344
void sqlcipher_vdbe_return_string(Parse*, const char*, const char*, int);
340345

341346
#ifdef CODEC_DEBUG_PAGEDATA

0 commit comments

Comments
 (0)