Move realpath() compatibility definition from config_gram.y to config.h

This commit is contained in:
Stefan Rueger 2022-07-19 08:05:42 +01:00
parent eba67e56fc
commit e52bd2b99b
2 changed files with 4 additions and 4 deletions

View File

@ -25,6 +25,10 @@
#include "libavrdude.h" #include "libavrdude.h"
#if defined(WIN32) || defined(_MSC_VER) || defined(__MINGW32__)
#define realpath(N,R) _fullpath((R), (N), PATH_MAX)
#endif
#define MAX_STR_CONST 1024 #define MAX_STR_CONST 1024

View File

@ -30,10 +30,6 @@
#include "libavrdude.h" #include "libavrdude.h"
#include "config.h" #include "config.h"
#if defined(_MSC_VER) || defined(__MINGW32__)
#define realpath(N,R) _fullpath((R), (N), PATH_MAX)
#endif
#if defined(WIN32) #if defined(WIN32)
#define strtok_r( _s, _sep, _lasts ) \ #define strtok_r( _s, _sep, _lasts ) \
( *(_lasts) = strtok( (_s), (_sep) ) ) ( *(_lasts) = strtok( (_s), (_sep) ) )