Skip to content

Commit

Permalink
imap-send: fix compilation-error on Windows
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Erik Faye-Lund authored and Junio C Hamano committed Oct 20, 2009
1 parent c94d2dd commit d23b1ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions imap-send.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d23b1ec

Please sign in to comment.