Skip to content

[BUG] regex.zc ifdef oddity #300

@borup3

Description

@borup3

Describe the bug
Some complex ifdefs to end up with the same output in all cases.

include "std/third-party/tre/include/tre.h"

raw {
    // Include TRE implementation for static linking
    #if defined(_WIN32) && defined(_MSC_VER)
      // Windows (MSVC) needs full source inclusion as linking .o files is hard
      #include "std/third-party/tre/tre_full.c"
    #else
      // Linux/macOS/MinGW: Also include source to ensure linking works without precompiled libs
      #include "std/third-party/tre/tre_full.c"
    #endif
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions