From cf35b7fe328093424fbbbf909821c0dd1dc49219 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Mon, 10 Jan 2022 14:51:48 +0100 Subject: [PATCH] Include ac_cfg.h before libavrdude.h On MSVC, this is required in order to have a definition of PATH_MAX in place. --- src/lexer.l | 1 + src/update.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/lexer.l b/src/lexer.l index 6e930a1e..2e27a5d4 100644 --- a/src/lexer.l +++ b/src/lexer.l @@ -28,6 +28,7 @@ #include #include +#include "ac_cfg.h" #include "avrdude.h" #include "libavrdude.h" #include "config.h" diff --git a/src/update.c b/src/update.c index 95e1028f..5f00d32d 100644 --- a/src/update.c +++ b/src/update.c @@ -25,6 +25,7 @@ #include #include +#include "ac_cfg.h" #include "avrdude.h" #include "libavrdude.h"