Skip to content

Commit 31365f4

Browse files
committed
Fix issues on win
1 parent d67654c commit 31365f4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bench/b2nd/bench_stack_append_openzl.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414

1515
#include <inttypes.h>
1616
#include <limits.h>
17+
#ifndef PATH_MAX
18+
#ifdef _WIN32
19+
#define PATH_MAX MAX_PATH
20+
#else
21+
#define PATH_MAX 4096
22+
#endif
23+
#endif
1724
#include <stdio.h>
1825
#include <stdlib.h>
1926
#include <string.h>

0 commit comments

Comments
 (0)