Commit 26b7ebf6 by Francois-Xavier Coudert Committed by François-Xavier Coudert

re PR libfortran/23802 ([mingw32] sleep malfunction)

	PR libfortran/23802
	* intrinsics/sleep.c: Add correct sleep macro for MinGW.

From-SVN: r104599
parent 399a39c7
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
* intrinsics/cpu_time.c (__cpu_time_1): Provide a MS Windows
version.
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment