New patches from Fedora.
[fedora-mingw.git] / jasper / jasper-1.900.1-sleep.patch
1 diff -rup jasper-1.900.1/src/appl/tmrdemo.c jasper-1.900.1.new/src/appl/tmrdemo.c
2 --- jasper-1.900.1/src/appl/tmrdemo.c   2007-01-19 16:43:08.000000000 -0500
3 +++ jasper-1.900.1.new/src/appl/tmrdemo.c       2008-09-09 09:14:21.000000000 -0400
4 @@ -1,4 +1,5 @@
5  #include <jasper/jasper.h>
6 +#include <windows.h>
7  
8  int main(int argc, char **argv)
9  {
10 @@ -43,7 +44,7 @@ int main(int argc, char **argv)
11         printf("zero time %.3f us\n", t * 1e6);
12  
13         jas_tmr_start(&tmr);
14 -       sleep(1);
15 +       Sleep(1);
16         jas_tmr_stop(&tmr);
17         t = jas_tmr_get(&tmr);
18         printf("time delay %.8f s\n", t);