Skip to content

Commit 62d2c62

Browse files
committed
include/windows: Add definition for realpath()
Signed-off-by: Jianxin Xiong <[email protected]>
1 parent 6fd57f2 commit 62d2c62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/windows/osd.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include <io.h>
2828
#include <stdint.h>
2929
#include <stdio.h>
30+
#include <stdlib.h>
3031
#include <malloc.h>
3132
#include <errno.h>
3233
#include <complex.h>
@@ -283,6 +284,7 @@ do \
283284
#define ntohll _byteswap_uint64
284285
#define be64toh ntohll
285286
#define strncasecmp _strnicmp
287+
#define realpath(p,rp) _fullpath((rp),(p),_MAX_PATH)
286288

287289
#define access(path, mode) _access(path, mode)
288290
#define F_OK 0

0 commit comments

Comments
 (0)