| 1 | #ifndef units_types__h |
| 2 | #define units_types__h |
| 3 | |
| 4 | #include <Rcpp.h> |
| 5 | |
| 6 | #if UDUNITS2_DIR != 0 |
| 7 | # include <udunits2/udunits2.h> |
| 8 | #else |
| 9 | # include <udunits2.h> |
| 10 | #endif |
| 11 | |
| 12 | typedef Rcpp::XPtr<ut_unit, Rcpp::PreserveStorage, ut_free, true> xut_unit; |
| 13 | typedef Rcpp::XPtr<cv_converter, Rcpp::PreserveStorage, cv_free, true> xcv_converter; |
| 14 | |
| 15 | #endif |