Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Tibbitts <j@tib.bs>2019-09-23 20:10:02 +0300
committerVojtěch Bubník <5830947+bubnikv@users.noreply.github.com>2019-09-24 09:54:35 +0300
commit197a1f95ffbd1986b36b13c0593d9188b8d1dc43 (patch)
tree32486a0dfccf13870a9ef18056ed59226385272b /src/admesh
parenta234193dea9f46f65c497cee40acf2eabcdb51e4 (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.cpp8
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.