mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 21:39:02 +08:00
avrdude: Fix PATH_MAX
This commit is contained in:
parent
4ac17daad2
commit
839c0451f7
@ -41,9 +41,14 @@ typedef unsigned long pinmask_t;
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(WIN32NATIVE)
|
||||
#define PATH_MAX 1024 // Tad arbitrary, but should be ok for avrdude's pruposes
|
||||
// PATH_MAX is used throughout avrdude for various purposes.
|
||||
// It is problematic though as it may or may not be defined on various systems
|
||||
// and even when it is, it tends to be somewhat arbitrary.
|
||||
// So instead we just define a value here that should be fine in most cases.
|
||||
#ifdef PATH_MAX
|
||||
#undef PATH_MAX
|
||||
#endif
|
||||
#define PATH_MAX 4096
|
||||
|
||||
|
||||
/* formerly lists.h */
|
||||
|
Loading…
x
Reference in New Issue
Block a user