Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PATH_MAX在Linux下编译出现重定义 #36

Open
catch2001 opened this issue Apr 22, 2021 · 1 comment
Open

PATH_MAX在Linux下编译出现重定义 #36

catch2001 opened this issue Apr 22, 2021 · 1 comment

Comments

@catch2001
Copy link

环境:
$ gcc --version
gcc (GCC) 10.2.0
Copyright (c) 2020 Free Software Foundation, Inc.

$ cat /proc/version
CYGWIN_NT-10.0-17763 version 3.2.0-340.x86_64 (corinna@calimero) (gcc version 9.3.0 20200312 (Fedora Cygwin 9.3.0-1) (GCC) ) 2021-03-29 08:42 UTC

建议修改如下
#ifdef PATH_MAX
#undef PATH_MAX
#endif

@xupenghu
Copy link
Collaborator

xupenghu commented Sep 1, 2021

感谢! 编译工具链没那么新 没出现过这个问题 后期修改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants