diff --git a/Makefile b/Makefile index 67b3ef310..9eaf8d337 100644 --- a/Makefile +++ b/Makefile @@ -843,7 +843,12 @@ endef export LIBPCI_TEST define LIBUSB0_TEST +#include "platform.h" +#if IS_WINDOWS +#include +#else #include +#endif int main(int argc, char **argv) { (void) argc; diff --git a/dediprog.c b/dediprog.c index 71a9f8bda..424849916 100644 --- a/dediprog.c +++ b/dediprog.c @@ -17,11 +17,19 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "platform.h" + #include #include #include #include + +#if IS_WINDOWS +#include +#else #include +#endif + #include "flash.h" #include "chipdrivers.h" #include "programmer.h"