Put C++ types behind ifdefs in get_var_datatype().