Code

imap-send: fix compilation-error on Windows
authorErik Faye-Lund <kusmabite@googlemail.com>
Mon, 19 Oct 2009 15:42:05 +0000 (17:42 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Oct 2009 05:17:36 +0000 (22:17 -0700)
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>
imap-send.c

index 72ed640125ec1c1305c4e714ff9dfd96f2c34435..69e614245681e86c56a50cd096a675e8dc96deec 100644 (file)
@@ -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