The branch, master has been updated
       via  223e5aae4f0dcf228d758ae60f02398e3d1e95da (commit)
      from  2f2d0deec2c1c33d233f4e4811191ee757b6420a (commit)


- Log -----------------------------------------------------------------
commit 223e5aae4f0dcf228d758ae60f02398e3d1e95da
Author: Jon Beniston <[email protected]>
Date:   Fri Jul 22 12:29:21 2016 +0200

    Build on _WIN32: Don't include sys/time.h
    
    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.

-----------------------------------------------------------------------

Summary of changes:
 src/ftdi.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/ftdi.h b/src/ftdi.h
index ca38bbe..fd9a8a9 100644
--- 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


hooks/post-receive
-- 
A library to talk to FTDI chips

--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [email protected]   

Reply via email to