Skip to content

Commit 79cf726

Browse files
committed
Fix Bug: add MEMORY_DATABASE_ENABLE macro and include stdbool.h when compiling on windows.
1 parent bb9bedd commit 79cf726

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

apache2/ag_mdb/ag_mdb_external.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#ifndef _AG_MDB_EXTERNAL_HEADER
22
#define _AG_MDB_EXTERNAL_HEADER
33

4-
5-
#ifndef _WIN32
64
#include "stdbool.h"
7-
#else
5+
#ifdef _WIN32
86
#ifdef inline
97
#undef inline
108
#endif
@@ -309,6 +307,7 @@ const char* AGMDB_getErrorInfo(int return_code);
309307
False if not.
310308
*/
311309
bool AGMDB_isError(int return_code);
310+
312311
/**
313312
** Get the number of keys in a database.
314313
** You have to get SHARED or EXCLUSIVE LOCK of the database before calling this function.

iis/Makefile.win

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ INCLUDES = $(INCLUDES) -I$(YAJL)\include -I$(YAJL) \
6262
# DEFS=$(DEFS) -DWITH_SSDEEP
6363
# INCLUDES = $(INCLUDES) -I$(SSDEEP)\include -I$(SSDEEP) \
6464
# !ENDIF
65-
66-
67-
65+
66+
# Enable support for collection's memory database
67+
DEFS=$(DEFS) -DMEMORY_DATABASE_ENABLE
6868

6969
CFLAGS= -MD /Zi $(INCLUDES) $(DEFS)
7070

0 commit comments

Comments
 (0)