File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,16 @@ typedef struct finufft_opts{ // defaults see finufft.cpp:finufft_default_opts()
35
35
36
36
// Those of the above of the form spread_* indicate pass through to finufft_spread_opts
37
37
38
- // Backwards-compatibility, with a warning in C (officially C23) or C++14...
39
- [[deprecated ("as of v2.1.0, nufft_opts is obsolete and renamed finufft_opts; please use this instead." )]] typedef finufft_opts nufft_opts ;
38
+ // define deprecated opts macro
39
+ #if defined(__cplusplus) && (__cplusplus >= 201402L)
40
+ #define DEPRECATED_OPTS [[deprecated (" as of v2.1.0, nufft_opts is obsolete and renamed finufft_opts; please use this instead." )]]
41
+ #elif defined(_MSC_VER)
42
+ #define DEPRECATED_OPTS __declspec (deprecated(" as of v2.1.0, nufft_opts is obsolete and renamed finufft_opts; please use this instead." ))
43
+ #else
44
+ #define DEPRECATED_OPTS __attribute__ ((deprecated(" as of v2.1.0, nufft_opts is obsolete and renamed finufft_opts; please use this instead." )))
45
+ #endif
46
+
47
+ // Backwards-compatibility
48
+ DEPRECATED_OPTS typedef finufft_opts nufft_opts;
40
49
41
50
#endif // FINUFFT_OPTS_H
You can’t perform that action at this time.
0 commit comments