mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-15 02:01:07 +00:00
* bitbang.c: Fix Win32 build error: move freq up to the file
level. * buspirate.c: Fix Win32 build warning: include <malloc.h> to to get a declaration for alloca(). git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@898 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -44,6 +44,7 @@ static int delay_decrement;
|
||||
|
||||
#if defined(WIN32NATIVE)
|
||||
static int has_perfcount;
|
||||
static LARGE_INTEGER freq;
|
||||
#else
|
||||
static volatile int done;
|
||||
|
||||
@@ -63,8 +64,6 @@ static void alarmhandler(int signo)
|
||||
static void bitbang_calibrate_delay(void)
|
||||
{
|
||||
#if defined(WIN32NATIVE)
|
||||
static LARGE_INTEGER freq;
|
||||
|
||||
/*
|
||||
* If the hardware supports a high-resolution performance counter,
|
||||
* we ultimately prefer that one, as it gives quite accurate delays
|
||||
|
||||
Reference in New Issue
Block a user