Re: MinGW build error when sleep re#defined as Sleep
Bob Friesenhahn <[email protected]> Sun, 1 Nov 2015 10:01:25 -0600 (CST)
| Newsgroups | gmane.comp.video.graphicsmagick.bugs |
|---|---|
| Message-ID | <[email protected]> |
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---559023410-1266935800-1446393686=:1673 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by blade.simplesystems.org id tA1G1Qt9015362 On Sun, 1 Nov 2015, Test User wrote: >=20 > The problem seems to be that MinGW has a header unistd.h that declares > sleep(unsigned secs) and causes the attempt to redefine it as Windows A= PI > function Sleep(DWORD milliseconds) in magick/studio.h to fail, i.e. >=20 > #if defined(MSWINDOWS) > /* various declarations */ > #=C2=A0 undef sleep > #=C2=A0 define sleep(sec)=C2=A0 Sleep(sec * 1000) /* ERROR! */ > #=C2=A0 if !defined(HAVE_TIFFCONF_H) > #=C2=A0=C2=A0=C2=A0 define HAVE_TIFFCONF_H > #=C2=A0 endif > #endif /* defined(MSWINDOWS) */ It seems that this was not done well. I will implement a better=20 solution. For temporary purposes, you could just comment out the two=20 studio.h lines which mention 'sleep' because this is only used in=20 X11-related code which is not likely being included in your MinGW=20 build. Bob --=20 Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen= / GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ ---559023410-1266935800-1446393686=:1673 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ ---559023410-1266935800-1446393686=:1673 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Graphicsmagick-bugs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/graphicsmagick-bugs ---559023410-1266935800-1446393686=:1673--