1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Do not redefine the MIN and MAX macros if they are already defined. (CVS 5896)

FossilOrigin-Name: f41dd2053c8a297a05b47d0ef631b4d9a7db2fff
This commit is contained in:
drh
2008-11-12 15:24:27 +00:00
parent ef988b47a4
commit 7ab49bfd1e
4 changed files with 20 additions and 14 deletions

View File

@@ -14,7 +14,7 @@
** The in-memory rollback journal is used to journal transactions for
** ":memory:" databases and when the journal_mode=MEMORY pragma is used.
**
** @(#) $Id: memjournal.c,v 1.2 2008/10/28 18:12:36 drh Exp $
** @(#) $Id: memjournal.c,v 1.3 2008/11/12 15:24:28 drh Exp $
*/
#include "sqliteInt.h"
@@ -30,7 +30,9 @@ typedef struct FileChunk FileChunk;
/* Macro to find the minimum of two numeric values.
*/
#define MIN(x,y) ((x)<(y)?(x):(y))
#ifndef MIN
# define MIN(x,y) ((x)<(y)?(x):(y))
#endif
/*
** The rollback journal is composed of a linked list of these structures.