13 Apr 2012 11:51
A library to talk to FTDI chips branch, libftdi-0.x, updated. v0.20-1-ga0705b2
<libftdi-git <at> developer.intra2net.com>
2012-04-13 09:51:22 GMT
2012-04-13 09:51:22 GMT
The branch, libftdi-0.x has been updated
via a0705b2bd42a3510211c7710c203e8bee2ed913a (commit)
from 6935ef7bd3cd0666438423285736cece988c2c7f (commit)
- Log -----------------------------------------------------------------
commit a0705b2bd42a3510211c7710c203e8bee2ed913a
Author: Xiaofan Chen <xiaofanc <at> gmail.com>
Date: Fri Apr 13 11:50:36 2012 +0200
Fix _sleep warning on MinGW
-----------------------------------------------------------------------
Summary of changes:
examples/bitbang_ft2232.c | 2 +-
examples/serial_test.c | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/examples/bitbang_ft2232.c b/examples/bitbang_ft2232.c
index 04b5c80..6cce45a 100644
--- a/examples/bitbang_ft2232.c
+++ b/examples/bitbang_ft2232.c
<at> <at> -11,7 +11,7 <at> <at>
#include <stdio.h>
#include <unistd.h>
#ifdef __WIN32__
-#define sleep(x) _sleep(x)
+#define sleep(x) Sleep(x)
#endif
#include <ftdi.h>
diff --git a/examples/serial_test.c b/examples/serial_test.c
index 20fc772..6a9d8ff 100644
--- a/examples/serial_test.c
+++ b/examples/serial_test.c
<at> <at> -8,6 +8,9 <at> <at>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#ifdef __WIN32__
+#define sleep(x) Sleep(x)
+#endif
#include <getopt.h>
#include <signal.h>
#include <ftdi.h>
hooks/post-receive
--
--
A library to talk to FTDI chips
RSS Feed