Big endian fix, thanks to @hyperair for hints and initial implementation.

This commit is contained in:
bubnikv 2017-10-03 10:57:16 +02:00
parent 84d4bf8fdb
commit a52a04550e
3 changed files with 44 additions and 10 deletions

View file

@ -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;