avrdude: Compilation on Windows/MSVC

This commit is contained in:
Vojtech Kral
2018-05-04 16:06:53 +02:00
parent 68a570221b
commit 07817c8ee5
22 changed files with 2385 additions and 732 deletions

View File

@@ -35,6 +35,7 @@
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <malloc.h>
#include "avrdude.h"
#include "libavrdude.h"
@@ -759,7 +760,7 @@ static int stk500_paged_write(PROGRAMMER * pgm, AVRPART * p, AVRMEM * m,
unsigned int page_size,
unsigned int addr, unsigned int n_bytes)
{
unsigned char buf[page_size + 16];
unsigned char *buf = alloca(page_size + 16);
int memtype;
int a_div;
int block_size;