Skip to content

Commit 8894842

Browse files
committed
trying once again with MinGW
1 parent e9ba910 commit 8894842

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cpp4rtest/src/test-complex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
// Helper to initialize Rcomplex portably across compilers
44
// Modern compilers prefer {{r,i}} but older Windows MinGW doesn't support it
5-
#if defined(_WIN32) && defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8
6-
// Old MinGW on Windows - use direct member initialization
5+
#if defined(_WIN32) && defined(__GNUC__) && !defined(__clang__)
6+
// MinGW on Windows - use direct member initialization
77
#define MAKE_RCOMPLEX(r, i) []() { Rcomplex c; c.r = (r); c.i = (i); return c; }()
88
#else
99
// Modern compilers - use aggregate initialization

cpp4rtest/src/test-r_complex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
// Helper to initialize Rcomplex portably across compilers
44
// Modern compilers prefer {{r,i}} but older Windows MinGW doesn't support it
5-
#if defined(_WIN32) && defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8
6-
// Old MinGW on Windows - use direct member initialization
5+
#if defined(_WIN32) && defined(__GNUC__) && !defined(__clang__)
6+
// MinGW on Windows - use direct member initialization
77
#define MAKE_RCOMPLEX(r, i) []() { Rcomplex c; c.r = (r); c.i = (i); return c; }()
88
#else
99
// Modern compilers - use aggregate initialization

0 commit comments

Comments
 (0)