Move realpath() compatibility definition from config_gram.y to config.h
This commit is contained in:
parent
eba67e56fc
commit
e52bd2b99b
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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) ) )
|
||||||
|
|
Loading…
Reference in New Issue