diff options
author | danielk1977 <danielk1977@noemail.net> | 2006-01-18 15:39:26 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2006-01-18 15:39:26 +0000 |
commit | 1de57847f8b9516f0048a991afe711d2add06487 (patch) | |
tree | db5221f9818435c8ce653e470872150b37dd98ab /src | |
parent | 54f0198e47ef06ee7a4326ccc51d6a21ce8914d2 (diff) | |
download | sqlite-1de57847f8b9516f0048a991afe711d2add06487.tar.gz sqlite-1de57847f8b9516f0048a991afe711d2add06487.zip |
Fix compilation error when neither MEMDEBUG or ENABLE_MEMORY_MANAGEMENT is enabled. (CVS 2971)
FossilOrigin-Name: 4de5c52920c94e2a29ef4b68eb8b990c63005b3d
Diffstat (limited to 'src')
-rw-r--r-- | src/util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c index 36cf5dc8d..1670d1966 100644 --- a/src/util.c +++ b/src/util.c @@ -14,7 +14,7 @@ ** This file contains functions for allocating memory, comparing ** strings, and stuff like that. ** -** $Id: util.c,v 1.174 2006/01/18 15:25:18 danielk1977 Exp $ +** $Id: util.c,v 1.175 2006/01/18 15:39:26 danielk1977 Exp $ */ #include "sqliteInt.h" #include "os.h" @@ -647,9 +647,11 @@ void sqlite3ReallocOrFree(void **pp, int n){ ** is the number of bytes that were available to SQLite using pointer p, ** regardless of how much memory was actually allocated. */ +#ifdef SQLITE_ENABLE_MEMORY_MANAGEMENT int sqlite3AllocSize(void *p){ return OSSIZEOF(p); } +#endif /* ** Make a copy of a string in memory obtained from sqliteMalloc(). These |