]> sigrok.org Git - libserialport.git/blobdiff - libserialport_internal.h
windows: -no-undefined is required to make a DLL.
[libserialport.git] / libserialport_internal.h
index 962fc20833a61d77c344af61a8f09f53c5efb117..031ffeffde76150fcb3b5e6d4af4426dad19a114 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#ifdef __linux__
+#define _BSD_SOURCE // for timeradd, timersub, timercmp
+#endif
+
 #include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <stdio.h>
 #include <stdarg.h>
 #ifdef _WIN32
+#include <initguid.h>
+
 #include <windows.h>
 #include <tchar.h>
 #include <setupapi.h>
 #include <cfgmgr32.h>
 #include <usbioctl.h>
+#include <usbiodef.h>
 #else
 #include <limits.h>
 #include <termios.h>