diff options
author | Jason Tibbitts <j@tib.bs> | 2019-09-23 20:10:02 +0300 |
---|---|---|
committer | Vojtěch Bubník <5830947+bubnikv@users.noreply.github.com> | 2019-09-24 09:54:35 +0300 |
commit | 197a1f95ffbd1986b36b13c0593d9188b8d1dc43 (patch) | |
tree | 32486a0dfccf13870a9ef18056ed59226385272b /src/admesh | |
parent | a234193dea9f46f65c497cee40acf2eabcdb51e4 (diff) |
Relocate declaration of stl_internal_reverse_quads
On little-endian hosts, stl_internal_reverse_quads will be called before
it is declared. Move the declaration up to the beginning of the file to
fix build breakage seen on an s390x host.
Diffstat (limited to 'src/admesh')
-rw-r--r-- | src/admesh/stlinit.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/admesh/stlinit.cpp b/src/admesh/stlinit.cpp index 693aad086..390fe56a4 100644 --- a/src/admesh/stlinit.cpp +++ b/src/admesh/stlinit.cpp @@ -36,6 +36,10 @@ #error "SEEK_SET not defined" #endif +#ifndef BOOST_LITTLE_ENDIAN +extern void stl_internal_reverse_quads(char *buf, size_t cnt); +#endif /* BOOST_LITTLE_ENDIAN */ + static FILE* stl_open_count_facets(stl_file *stl, const char *file) { // Open the file in binary mode first. @@ -238,10 +242,6 @@ bool stl_open(stl_file *stl, const char *file) return result; } -#ifndef BOOST_LITTLE_ENDIAN -extern void stl_internal_reverse_quads(char *buf, size_t cnt); -#endif /* BOOST_LITTLE_ENDIAN */ - void stl_allocate(stl_file *stl) { // Allocate memory for the entire .STL file. |