mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-05 07:26:47 +08:00
re PR libfortran/23802 ([mingw32] sleep malfunction)
PR libfortran/23802 * intrinsics/sleep.c: Add correct sleep macro for MinGW. From-SVN: r104599
This commit is contained in:
parent
399a39c720
commit
26b7ebf6bf
@ -1,3 +1,8 @@
|
||||
2005-09-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
|
||||
|
||||
PR libfortran/23802
|
||||
* intrinsics/sleep.c: Add correct sleep macro for MinGW.
|
||||
|
||||
2005-09-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
|
||||
|
||||
PR libfortran/23380
|
||||
|
@ -39,6 +39,13 @@ Boston, MA 02110-1301, USA. */
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef __MINGW32__
|
||||
# include <windows.h>
|
||||
# undef sleep
|
||||
# define sleep(x) Sleep(1000*(x))
|
||||
# define HAVE_SLEEP
|
||||
#endif
|
||||
|
||||
/* SUBROUTINE SLEEP(SECONDS)
|
||||
INTEGER, INTENT(IN) :: SECONDS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user