diff --git a/octomap/src/binvox2bt.cpp b/octomap/src/binvox2bt.cpp index 1e6358f8..74ad151a 100644 --- a/octomap/src/binvox2bt.cpp +++ b/octomap/src/binvox2bt.cpp @@ -56,9 +56,9 @@ using namespace std; using namespace octomap; -#if __cplusplus < 201500L +namespace octomap { typedef unsigned char byte; -#endif +} int main(int argc, char **argv) { @@ -229,8 +229,8 @@ int main(int argc, char **argv) cout.flush(); // read voxel data - byte value; - byte count; + octomap::byte value; + octomap::byte count; int index = 0; int end_index = 0; unsigned nr_voxels = 0; diff --git a/octomap/src/edit_octree.cpp b/octomap/src/edit_octree.cpp index cedadd64..77cc3b23 100644 --- a/octomap/src/edit_octree.cpp +++ b/octomap/src/edit_octree.cpp @@ -41,9 +41,6 @@ using namespace std; using namespace octomap; -#if __cplusplus < 201500L - typedef unsigned char byte; -#endif int main(int argc, char **argv) {