File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 33// Helper to initialize Rcomplex portably across compilers
44// Modern compilers prefer {{r,i}} but older Windows MinGW doesn't support it
55#if defined(_WIN32) && defined(__GNUC__) && !defined(__clang__)
6- // MinGW on Windows - use direct member initialization
7- #define MAKE_RCOMPLEX (r, i ) []() { Rcomplex c; c.r = (r ); c.i = (i ); return c; }()
6+ // MinGW on Windows - use direct member initialization with different param names
7+ #define MAKE_RCOMPLEX (real, imag ) []() { Rcomplex c; c.r = (real ); c.i = (imag ); return c; }()
88#else
99 // Modern compilers - use aggregate initialization
1010 #define MAKE_RCOMPLEX (r, i ) Rcomplex{{r, i}}
Original file line number Diff line number Diff line change 33// Helper to initialize Rcomplex portably across compilers
44// Modern compilers prefer {{r,i}} but older Windows MinGW doesn't support it
55#if defined(_WIN32) && defined(__GNUC__) && !defined(__clang__)
6- // MinGW on Windows - use direct member initialization
7- #define MAKE_RCOMPLEX (r, i ) []() { Rcomplex c; c.r = (r ); c.i = (i ); return c; }()
6+ // MinGW on Windows - use direct member initialization with different param names
7+ #define MAKE_RCOMPLEX (real, imag ) []() { Rcomplex c; c.r = (real ); c.i = (imag ); return c; }()
88#else
99 // Modern compilers - use aggregate initialization
1010 #define MAKE_RCOMPLEX (r, i ) Rcomplex{{r, i}}
You can’t perform that action at this time.
0 commit comments