Repository: lucy
Updated Branches:
  refs/heads/master ac8f8ecae -> b6ccb300b


Fix DECREF name clash

MinGW's winnt.h also defines DECREF.


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/479c2778
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/479c2778
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/479c2778

Branch: refs/heads/master
Commit: 479c2778add617cc7d1f90b6fd10f3e7c44d470c
Parents: ac8f8ec
Author: Nick Wellnhofer <[email protected]>
Authored: Mon Jul 21 21:46:11 2014 +0200
Committer: Nick Wellnhofer <[email protected]>
Committed: Mon Jul 21 21:46:11 2014 +0200

----------------------------------------------------------------------
 core/Lucy/Store/FSDirHandle.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/479c2778/core/Lucy/Store/FSDirHandle.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Store/FSDirHandle.c b/core/Lucy/Store/FSDirHandle.c
index f17ea15..f231471 100644
--- a/core/Lucy/Store/FSDirHandle.c
+++ b/core/Lucy/Store/FSDirHandle.c
@@ -179,7 +179,7 @@ FSDH_Next_IMP(FSDirHandle *self) {
     }
     else if ((FindNextFile(dirhandle, find_data) == 0)) {
         // Iterator exhausted.  Verify that no errors were encountered.
-        DECREF(ivars->entry);
+        CFISH_DECREF(ivars->entry);
         ivars->entry = NULL;
         if (GetLastError() != ERROR_NO_MORE_FILES) {
             char *win_error = Err_win_error();
@@ -197,7 +197,7 @@ FSDH_Next_IMP(FSDirHandle *self) {
         return FSDH_Next(self);
     }
     else {
-        DECREF(ivars->entry);
+        CFISH_DECREF(ivars->entry);
         ivars->entry = Str_new_from_utf8(find_data->cFileName, len);
         return true;
     }

Reply via email to