From 75543537a16a0911af61045a96926cdb81f51383 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 8 Mar 2012 09:36:11 +0000 Subject: * Throughout, replace usage of w32api's min with MIN from sys/param.h. --- winsup/cygwin/fhandler_floppy.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/fhandler_floppy.cc') diff --git a/winsup/cygwin/fhandler_floppy.cc b/winsup/cygwin/fhandler_floppy.cc index 070a30ab5..0caca96e8 100644 --- a/winsup/cygwin/fhandler_floppy.cc +++ b/winsup/cygwin/fhandler_floppy.cc @@ -2,7 +2,7 @@ fhandler classes. Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, - 2009, 2011 Red Hat, Inc. + 2009, 2011, 2012 Red Hat, Inc. This file is part of Cygwin. @@ -13,6 +13,7 @@ details. */ #include "winsup.h" #include #include +#include #include #include #include @@ -446,7 +447,7 @@ fhandler_dev_floppy::raw_read (void *ptr, size_t& ulen) { if (devbufstart < devbufend) { - bytes_to_read = min (len, devbufend - devbufstart); + bytes_to_read = MIN (len, devbufend - devbufstart); debug_printf ("read %d bytes from buffer (rest %d)", bytes_to_read, devbufend - devbufstart - bytes_to_read); -- cgit v1.2.3