src: multiple Windows fixes

- Cross platform implementations of sleep and snprintf.
This commit is contained in:
Santiago Gimeno
2015-05-22 14:32:13 +02:00
parent 0c5e07e0e5
commit 1a3c7dec1c
3 changed files with 24 additions and 2 deletions

View File

@@ -1,4 +1,3 @@
#include <unistd.h>
#include "pcsclite.h"
#include "common.h"
@@ -193,7 +192,7 @@ void PCSCLite::HandlerFunction(void* arg) {
uv_mutex_unlock(&pcsclite->m_mutex);
} else {
/* If PnP is not supported, just wait for 1 second */
sleep(1);
Sleep(1000);
}
}