libd1394 2.x support for mingw on windows added

This commit is contained in:
Dominik Rose
2013-05-14 16:20:01 +02:00
parent 2a646f7626
commit 86ec9b79fd
4 changed files with 63 additions and 7 deletions

View File

@@ -45,7 +45,16 @@
#include <unistd.h>
#include <stdint.h>
#include <sys/select.h>
#ifdef WIN32
// On Windows, we have no sys/select.h, but we need to pick up
// select() which is in winsock2.
#ifndef __SYS_SELECT_H__
#define __SYS_SELECT_H__ 1
#include <winsock2.h>
#endif
#else
#include <sys/select.h>
#endif /*WIN32*/
#include <dc1394/dc1394.h>
#include <stdlib.h>
#include <string.h>