Skip to content

Problem: __STDC_LIMIT_MACROS define precedes PCH include. #2452

Closed
@evoskuil

Description

@evoskuil

Visual Studio 2013 warning:

.\..\..\..\src\zmq_utils.cpp(30): warning C4603: '__STDC_LIMIT_MACROS' : macro is not defined or definition is different after precompiled header use
          Add macro to precompiled header instead of defining here
          ..\..\..\..\src\zmq_utils.cpp(32) : use of precompiled header

It's not clear to me whether this inclusion should be strictly limited to zmq_utils.cpp and as such I'm hesitant to move it to the precompiled header (PCH). But the PCH should be the first source in the file. Moving this define after the PCH may have unintended consequences as well, since it affects the behavior of includes of the PCH.

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