File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
inst/include/RcppArmadillo/interface Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 50
50
// See version/arma.h header for the (user and/or compilation) drive selection of these defines
51
51
#if defined(ARMA_SELECTED_CURRENT_VERSION)
52
52
53
- // we include Armadillo 15.0.1 here
53
+ // we include Armadillo 15.0.1 here -- but do it quietly
54
54
// #pragma message("Using compilation with current Armadillo version.")
55
55
56
56
// Armadillo 15.0.1 or later
57
57
#include " current/armadillo"
58
58
59
- #elif defined(ARMA_SELECTED_LEGACY_VERSION)
59
+ #else
60
+
61
+ // we use a catch-all else branch to provide for packages including this file directly
62
+ // needless to say, we recommend one of the official entry-point headers
63
+ #if !defined(ARMA_SELECTED_LEGACY_VERSION)
64
+ #pragma message("Neither 'current' nor 'legacy' version selected. Ensure you use proper entry point headers.")
65
+ #endif
60
66
61
- // we include Armadillo 14.6.3 here
67
+ // we include Armadillo 14.6.3 here -- but do it quietly
62
68
// #pragma message("Using fallback compilation with Armadillo 14.6.3.")
63
69
64
70
// Armadillo has deprecation warnings (which RcppArmadillo suppressed at time to
73
79
74
80
#include " legacy/armadillo"
75
81
76
- #else
77
-
78
- #error "Neither 'current' nor 'legacy' version selected. Ensure you use proper entry point headers."
79
-
80
82
#endif
81
83
82
84
/* forward declarations */
You can’t perform that action at this time.
0 commit comments