big int to stdint switch

This commit is contained in:
van Hauser 2017-07-05 08:48:00 +02:00
parent 74931e3b58
commit f124c26fc6
73 changed files with 1364 additions and 1235 deletions

View file

@ -2,14 +2,14 @@
#ifndef _WIN32
#include <time.h>
int sleepn(time_t seconds)
int32_t sleepn(time_t seconds)
{
struct timespec ts;
ts.tv_sec = seconds;
ts.tv_nsec = 0;
return nanosleep(&ts, NULL);
}
int usleepn(long int milisec) {
int32_t usleepn(int64_t milisec) {
struct timespec ts;
ts.tv_sec = milisec / 1000;
ts.tv_nsec = (milisec % 1000) * 1000000L;
@ -19,12 +19,12 @@ int usleepn(long int milisec) {
#else
#include <windows.h>
int sleepn(unsigned int seconds)
int32_t sleepn(uint32_t seconds)
{
return SleepEx(milisec*1000,TRUE);
}
int usleepn(unsigned int milisec)
int32_t usleepn(uint32_t milisec)
{
return SleepEx(milisec,TRUE);
}