[flang-commits] [flang] [flang] Fix ISO_C_BINDING type sizes for Windows (PR #172034)
Jameson Nash via flang-commits
flang-commits at lists.llvm.org
Wed Jan 14 07:08:33 PST 2026
================
@@ -117,9 +123,13 @@ module iso_c_binding
c_unsigned_char = c_uint8_t, &
c_unsigned_short = c_uint16_t, &
c_unsigned = c_uint32_t, &
+#if defined(_WIN32)
+ c_unsigned_long = c_uint32_t, &
+#else
c_unsigned_long = c_uint64_t, &
- c_unsigned_long_long = c_unsigned_long, &
-#if __powerpc__
+#endif
+ c_unsigned_long_long = c_uint64_t, &
+#if __powerpc__ || defined(_WIN32)
----------------
vtjnash wrote:
Good eye. There was one other like that too that which I changed also
https://github.com/llvm/llvm-project/pull/172034
More information about the flang-commits
mailing list