Skip to content

The FAIL_FAST_X macros don't play nice with header units #644

Closed

Description

@tom-huntington

FAIL_FAST_X depends of static inline functions in strsafe.h.

Static inline functions are not supported by header units & modules dcleblanc/SafeInt#61.

You have to #include "strsafe.h" before import winrt_base; and before any header units with window SDK includes, or you get

error C2129: static function 'HRESULT StringValidateDestW(STRSAFE_PCNZWCH,size_t,const size_t)' declared but not defined

Activity

  1. InfiniteLoopGameDev commented on Oct 20, 2026

    @InfiniteLoopGameDev

    I am also getting this error, though I am not using FAIL_FAST_X

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions