[clang] [clang] Predefine `_CRT_USE_BUILTIN_OFFSETOF` in MS-compatible modes (PR #127568)

A. Jiang via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 21 01:07:33 PST 2025


================
@@ -0,0 +1,17 @@
+// RUN: %clang_cc1 %s -triple i686-pc-win32 -fsyntax-only -verify -fms-compatibility
----------------
frederick-vs-ja wrote:

Added. I decided to add the positive and negative tests together. Luckily, UCRT's `<stddef.h>` selects `__builtin_offsetof` when `_MSC_VER` isn't defined.

https://github.com/llvm/llvm-project/pull/127568


More information about the cfe-commits mailing list