Skip to content

Wrong macro use under MSVC #3211

Closed

Description

@sakra

Describe the bug
The catch2 amalgamated header uses the wrong pre-processor define _MSVC_VER in line 1523. The correct one is _MSC_VER. Thus optimizations are never turned on again.

Expected behavior
Use _MSC_VER for the check.

Reproduction steps
n/a

Platform information:

  • OS: Windows NT
  • Compiler+version: MSVC
  • Catch version: v3.16.0

Additional context
Add any other context about the problem here.

Activity

  1. horenmar commented on Oct 5, 2026

    @horenmar
    Member

    Ooops, I broke that recently in 45f9ea1 when I noticed the issue in the check above the pragma that disables the optimizations, but not in the check above the pragma that re-enables the optimizations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions