Change the prototype for usleep() to be more Cygwin-friendly.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@788 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
4f316d8f99
commit
981c91d72f
|
@ -1,3 +1,9 @@
|
||||||
|
2008-11-20 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||||
|
|
||||||
|
* avrdude.h: Change the prototype for usleep() to be more Cygwin-
|
||||||
|
friendly.
|
||||||
|
* ppiwin.c: (Ditto.)
|
||||||
|
|
||||||
2008-11-06 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
2008-11-06 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||||
|
|
||||||
Submitted by limor <limor@ladyada.net>
|
Submitted by limor <limor@ladyada.net>
|
||||||
|
|
|
@ -46,7 +46,7 @@ extern "C" {
|
||||||
#define ANTIWARP 3
|
#define ANTIWARP 3
|
||||||
#define usleep(us) Sleep(us/1000*ANTIWARP)
|
#define usleep(us) Sleep(us/1000*ANTIWARP)
|
||||||
*/
|
*/
|
||||||
void usleep(unsigned long us);
|
int usleep(unsigned int us);
|
||||||
|
|
||||||
#if !defined(HAVE_GETTIMEOFDAY)
|
#if !defined(HAVE_GETTIMEOFDAY)
|
||||||
struct timezone;
|
struct timezone;
|
||||||
|
|
4
ppiwin.c
4
ppiwin.c
|
@ -374,7 +374,7 @@ int gettimeofday(struct timeval *tv, struct timezone *unused){
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void usleep(unsigned long us)
|
int usleep(unsigned int us)
|
||||||
{
|
{
|
||||||
int has_highperf;
|
int has_highperf;
|
||||||
LARGE_INTEGER freq,start,stop,loopend;
|
LARGE_INTEGER freq,start,stop,loopend;
|
||||||
|
@ -407,6 +407,8 @@ void usleep(unsigned long us)
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG_DisplayTimingInfo(start, stop, freq, us, has_highperf);
|
DEBUG_DisplayTimingInfo(start, stop, freq, us, has_highperf);
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue