Skip to content

Commit

Permalink
HACK PATH_MAX msvc x64 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ndim committed Feb 23, 2024
1 parent 000b1e1 commit 28785d1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/libavrdude.h
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,11 @@ typedef struct { // Memory cache for a subset of cached pages
#define OFF 0 // Many contexts: reset, power, LEDs, ...
#define ON 1 // Many contexts

#ifdef PATH_MAX
#define PGM_PORTLEN PATH_MAX
#else
#define PGM_PORTLEN _MAX_PATH
#endif
#define PGM_TYPELEN 32

typedef enum {
Expand Down Expand Up @@ -1528,8 +1532,8 @@ void terminal_setup_update_progress(void);
extern "C" {
#endif

void win_sys_config_set(char sys_config[PATH_MAX]);
void win_usr_config_set(char usr_config[PATH_MAX]);
void win_sys_config_set(char *sys_config);
void win_usr_config_set(char *usr_config);

#ifdef __cplusplus
}
Expand Down

0 comments on commit 28785d1

Please sign in to comment.