Skip to content

Commit

Permalink
Cross-platform include of endian.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias-Fischer authored and tridge committed Apr 13, 2021
1 parent 0a5a5be commit 4dac715
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions generator/CPP11/include_v2.0/msgmap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
#pragma once

#include <algorithm>
#ifdef FREEBSD
#include <sys/endian.h>
#elif __APPLE__
#include <machine/endian.h>
#else
#include <endian.h>
#endif
#include <type_traits>

namespace mavlink {
Expand Down

0 comments on commit 4dac715

Please sign in to comment.