You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2012/11/22 19:44:02 UTC
[lucy-commits] [2/23] git commit: refs/heads/master - Fix compilation with C++
compiler
Fix compilation with C++ compiler
When compiling as C++, we don't redefine true/false now, so these values
are not expanded to 0 and 1.
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/98bb68e3
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/98bb68e3
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/98bb68e3
Branch: refs/heads/master
Commit: 98bb68e31c292090e868be29b7886cc02114a816
Parents: 1576211
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sun Nov 18 16:54:41 2012 +0100
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Sun Nov 18 18:44:55 2012 +0100
----------------------------------------------------------------------
core/Lucy/Store/FSFileHandle.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/98bb68e3/core/Lucy/Store/FSFileHandle.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Store/FSFileHandle.c b/core/Lucy/Store/FSFileHandle.c
index b5a314a..d9f9b41 100644
--- a/core/Lucy/Store/FSFileHandle.c
+++ b/core/Lucy/Store/FSFileHandle.c
@@ -55,7 +55,7 @@ SI_posix_flags(uint32_t fh_flags) {
return posix_flags;
}
-#define IS_64_BIT (SIZEOF_PTR == 8 ? true : false)
+#define IS_64_BIT (SIZEOF_PTR == 8 ? 1 : 0)
// Memory map a region of the file with shared (read-only) permissions. If
// the requested length is 0, return NULL. If an error occurs, return NULL