Skip to content

Commit

Permalink
Fix MSVC compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanrueger committed Apr 28, 2024
1 parent ce8bb5f commit 55f7da7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1269,11 +1269,11 @@ int main(int argc, char * argv [])
break;

case CONNTYPE_SPI:
port = mmt_strdup(
#ifdef HAVE_LINUXSPI
*default_spi? default_spi:
port = mmt_strdup(*default_spi? default_spi: "unknown");
#else
port = mmt_strdup("unknown");
#endif
"unknown");
break;

case CONNTYPE_LINUXGPIO:
Expand Down
3 changes: 3 additions & 0 deletions src/whereami.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ extern "C" {

#if !defined(WAI_MALLOC) || !defined(WAI_FREE) || !defined(WAI_REALLOC)
#include <stdlib.h>
#ifndef PATH_MAX
#define PATH_MAX _MAX_PATH
#endif
#include "avrdude.h"
#include "libavrdude.h"
#endif
Expand Down

0 comments on commit 55f7da7

Please sign in to comment.