Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/MRMesh/MRBitSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ namespace MR

/// std::vector<bool> like container (random-access, size_t - index type, bool - value type)
/// with all bits after size() considered off during testing
class BitSet : public boost::dynamic_bitset<std::uint64_t>
class BitSet : public boost::dynamic_bitset<Uint64>
{
public:
using base = boost::dynamic_bitset<std::uint64_t>;
using base = boost::dynamic_bitset<Uint64>;
using base::base;
using IndexType = size_t;

Expand Down
1 change: 1 addition & 0 deletions source/MRMesh/MRDistanceMapLoad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include <filesystem>
#include <fstream>
#include <sstream>

namespace MR
{
Expand Down
1 change: 1 addition & 0 deletions source/MRMesh/MRDistanceMapSave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <filesystem>
#include <fstream>
#include <sstream>

namespace MR
{
Expand Down
1 change: 1 addition & 0 deletions source/MRMesh/MRLinesLoad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "MRPly.h"
#include "MRTimer.h"
#include <fstream>
#include <sstream>

namespace MR
{
Expand Down
1 change: 1 addition & 0 deletions source/MRMesh/MRMeshLoad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <array>
#include <future>
#include <sstream>

namespace MR
{
Expand Down
1 change: 1 addition & 0 deletions source/MRMesh/MRMultiwayAligningTransform.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "MRMultiwayAligningTransform.h"
#include "MRphmap.h"
#include "MRGTest.h"
#include "MRTimer.h"

Expand Down
4 changes: 2 additions & 2 deletions source/MRMesh/MRStreamOperators.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
#include "MRMatrix3.h"
#include "MRMatrix4.h"
#include "MRPlane3.h"
#include "MRBitSet.h"
#include "MRTriPoint.h"
#include "MRAffineXf3.h"
#include "MRPointOnFace.h"

#include <istream>
#include <ostream>

/**
* \brief Overloaded operators for IO base structures (Vector, Matrix, Plane, AffineXf, ...)
Expand Down
2 changes: 1 addition & 1 deletion source/MRMeshC/MRBitSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ MRBitSet* mrBitSetCopy( const MRBitSet* bs_ )
RETURN_NEW( bs );
}

const uint64_t* mrBitSetBlocks( const MRBitSet* bs_ )
const Uint64* mrBitSetBlocks( const MRBitSet* bs_ )
{
ARG( bs );
return bs.bits().data();
Expand Down
2 changes: 1 addition & 1 deletion source/MRMeshC/MRBitSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ MRMESHC_API MRBitSet* mrBitSetCopy( const MRBitSet* bs );
MRMESHC_API MRBitSet* mrBitSetNew( size_t numBits, bool fillValue );

/// gets read-only access to the underlying blocks of a bitset
MRMESHC_API const uint64_t* mrBitSetBlocks( const MRBitSet* bs );
MRMESHC_API const Uint64* mrBitSetBlocks( const MRBitSet* bs );

/// gets count of the underlying blocks of a bitset
MRMESHC_API size_t mrBitSetBlocksNum( const MRBitSet* bs );
Expand Down
18 changes: 18 additions & 0 deletions source/MRMeshC/MRMeshFwd.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,22 @@ typedef struct MRSaveSettings MRSaveSettings;

typedef bool (*MRProgressCallback)( float );

#ifdef __cplusplus
#define MRSTD std::
#else
#define MRSTD
#endif

#ifdef __APPLE__
typedef MRSTD ptrdiff_t Int64;
typedef MRSTD size_t Uint64;
#ifdef __cplusplus
static_assert(sizeof(Int64) == 8);
static_assert(sizeof(Uint64) == 8);
#endif
#else //!__APPLE__
typedef MRSTD int64_t Int64;
typedef MRSTD uint64_t Uint64;
#endif

MR_EXTERN_C_END
2 changes: 2 additions & 0 deletions source/MRPch/MRPch.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@

#include <algorithm>
#include <array>
#include <bit>
#include <cassert>
#include <cfloat>
#include <chrono>
Expand Down Expand Up @@ -87,6 +88,7 @@
#include <string>
#include <thread>
#include <tuple>
#include <typeindex>
#include <unordered_map>
#include <variant>
#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion source/MRTest/MRChunkIterator.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "MRMesh/MRChunkIterator.h"

#include "MRMesh/MRBitSet.h"
#include "MRMesh/MRGTest.h"

namespace MR
Expand Down
1 change: 1 addition & 0 deletions source/MRViewer/MRSceneCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "MRMesh/MRSceneRoot.h"
#include "exports.h"
#include <unordered_map>
#include <typeindex>

namespace MR
{
Expand Down
1 change: 1 addition & 0 deletions source/MRVoxels/MRDicom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <gdcmTagKeywords.h>
#pragma warning(pop)

#include <variant>

namespace MR
{
Expand Down
Loading