Make realpath() available for MSC and MINGW32

This commit is contained in:
Stefan Rueger 2022-07-19 07:42:44 +01:00
parent f95a1d3448
commit eba67e56fc
1 changed files with 4 additions and 0 deletions

View File

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