Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/zipPublic

Conditionally define S_IFMT? #131

Open
@MichaelChirico

Description

@MichaelChirico

#defineS_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)/* symbolic link */

S_IFMT is a POSIX extension, so it might require some other macros be defined, e.g. when compiled with-std=c11 we can pair it with_XOPEN_SOURCE=700,_DEFAULT_SOURCE,_GNU_SOURCE, ...

https://stackoverflow.com/questions/28547271/s-ifmt-and-s-ifreg-undefined-with-std-c11-or-std-gnu11

As to why-std=c11 was chosen, well, I don't know :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp