Skip to content

The global scope :: doesn't works fine for a function which is a #define #8

@xiangpdu

Description

@xiangpdu

Such as:

src/server/protocol/ServerHttp2.cpp:501:63: error: expected unqualified-id
*reinterpret_cast<uint32_t *>(addr + sizeof(uint32_t) ) = ::htonl(
^
/usr/include/sys/_endian.h:136:18: note: expanded from macro 'htonl'
#define htonl(x) __DARWIN_OSSwapInt32(x)
^
/usr/include/libkern/_OSByteOrder.h:75:5: note: expanded from macro '__DARWIN_OSSwapInt32'
(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions