mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-07 05:54:03 -06:00
avrdude: Fix PATH_MAX
This commit is contained in:
parent
4ac17daad2
commit
839c0451f7
1 changed files with 7 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue