Commit 65912579 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

[t:3706] Fixup the bools a little. Refs #3706.

git-svn-id: file:///svn/toku/tokudb@32766 c7de825b-a66e-492c-adef-691d508d4ae1
parent 9494eef8
......@@ -77,10 +77,12 @@ typedef struct {
} FILENUMS;
#include <stdbool.h>
#ifndef TRUE
// In the future, use the stdbool bool and constants (true false), rather than BOOL, TRUE, and FALSE.
#define TRUE true
#define FALSE false
typedef bool BOOL;
#endif
typedef struct tokulogger *TOKULOGGER;
#define NULL_LOGGER ((TOKULOGGER)0)
......
......@@ -206,11 +206,12 @@ uint_dbt_cmp (DB *db, const DBT *a, const DBT *b) {
}
#include <stdbool.h>
#ifndef TRUE
// typedef enum __toku_bool { FALSE=0, TRUE=1} BOOL;
#define TRUE true
#define FALSE false
typedef bool BOOL;
#endif
#ifdef USE_TDB
#define SET_TRACE_FILE(x) toku_set_trace_file(x)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment