mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-25 17:51:10 -06:00
Big endian fix, thanks to @hyperair for hints and initial implementation.
This commit is contained in:
parent
84d4bf8fdb
commit
a52a04550e
3 changed files with 44 additions and 10 deletions
|
|
@ -26,11 +26,6 @@
|
|||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <boost/detail/endian.hpp>
|
||||
|
||||
#ifndef BOOST_LITTLE_ENDIAN
|
||||
#error "admesh works correctly on little endian machines only!"
|
||||
#endif
|
||||
|
||||
#define STL_MAX(A,B) ((A)>(B)? (A):(B))
|
||||
#define STL_MIN(A,B) ((A)<(B)? (A):(B))
|
||||
|
|
@ -112,7 +107,7 @@ typedef struct {
|
|||
typedef struct {
|
||||
char header[81];
|
||||
stl_type type;
|
||||
int number_of_facets;
|
||||
uint32_t number_of_facets;
|
||||
stl_vertex max;
|
||||
stl_vertex min;
|
||||
stl_vertex size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue