summaryrefslogtreecommitdiff
path: root/imap-send.c
diff options
context:
space:
mode:
authorErik Faye-Lund <kusmabite@googlemail.com>2009-10-19 17:42:05 +0200
committerJunio C Hamano <gitster@pobox.com>2009-10-19 22:17:36 -0700
commitd23b1ecf11ee48cd9e266ada06f1b8298b917e92 (patch)
treeca3b7bdc8ab1514f60111e285728ee270816fa4a /imap-send.c
parentc94d2dd0807328b1ee4aa8353382caa45bc24055 (diff)
downloadgit-d23b1ecf11ee48cd9e266ada06f1b8298b917e92.tar.gz
imap-send: fix compilation-error on Windows
mmsystem.h (included from windows.h) defines DRV_OK to 1. To avoid an error due to DRV_OK redefenition, this patch undefines the old definition (i.e the one from mmsystem.h) before defining DRV_OK. Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'imap-send.c')
-rw-r--r--imap-send.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/imap-send.c b/imap-send.c
index 72ed640125..69e6142456 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -94,6 +94,7 @@ struct msg_data {
unsigned int crlf:1;
};
+#undef DRV_OK
#define DRV_OK 0
#define DRV_MSG_BAD -1
#define DRV_BOX_BAD -2