git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
2f2d0de
)
Build on _WIN32: Don't include sys/time.h
author
Jon Beniston
<jon@beniston.com>
Fri, 22 Jul 2016 10:29:21 +0000 (12:29 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Fri, 22 Jul 2016 10:29:21 +0000 (12:29 +0200)
The attached patch fixes compilation with Visual Studio:
sys/time.h isn't available on Windows. timeval is defined within
windows includes.
Compiles OK for Cygwin/Mingw too.
src/ftdi.h
patch
|
blob
|
blame
|
history
diff --git
a/src/ftdi.h
b/src/ftdi.h
index
ca38bbe
..
fd9a8a9
100644
(file)
--- a/
src/ftdi.h
+++ b/
src/ftdi.h
@@
-18,7
+18,9
@@
#define __libftdi_h__
#include <stdint.h>
+#ifndef _WIN32
#include <sys/time.h>
+#endif
/* 'interface' might be defined as a macro on Windows, so we need to
* undefine it so as not to break the current libftdi API, because