S_ISREG macro undefined

前端 未结 4 1994
眼角桃花
眼角桃花 2021-01-05 02:40

Questions

  • Are the posix macros S_ISREG, S_ISDIR etc linux only? I need to find out because i am trying to compile CURL and it is trying to use them on windows
  • Wh
4条回答
  •  佛祖请我去吃肉
    2021-01-05 02:55

    Currently curl 7.21.5 defines in setup.h this:

    #if !defined(S_ISREG) && defined(S_IFMT) && defined(S_IFREG)
    #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
    #endif
    

提交回复
热议问题