S_ISREG macro undefined

前端 未结 4 1987
眼角桃花
眼角桃花 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 03:10

    On windows try adding the underscore (_S_ISREG). In MinGW's lib the S_ISREG macro is also accessible in

    Maybe you should just check your configuration macros.

提交回复
热议问题