Skip to content

WIN32 not defined yet #1676

@matt77hias

Description

@matt77hias

Hey, I have some possible (as I manually configure MSBuild) compilation on Windows 10 (VS2019).

internal\catch_session.h

#if defined(CATCH_CONFIG_WCHAR) && defined(WIN32) && defined(UNICODE)
        int applyCommandLine( int argc, wchar_t const * const * argv );
#endif

WIN32 is not defined (yet).

internal\catch_session.cpp

#if defined(CATCH_CONFIG_WCHAR) && defined(WIN32) && defined(UNICODE)
    int Session::applyCommandLine( int argc, wchar_t const * const * argv ) {
...
    }
#endif

WIN32 is defined.

Solution: move #include "catch_windows_h_proxy.h" before "#include "catch_session.h".

I am running the trunk version.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions