Browse Source

Fix include

Michael Ragazzon 6 years ago
parent
commit
27f5076634
1 changed files with 2 additions and 3 deletions
  1. 2 3
      Source/Core/LayoutEngine.cpp

+ 2 - 3
Source/Core/LayoutEngine.cpp

@@ -39,6 +39,7 @@
 #include "../../Include/RmlUi/Core/Types.h"
 #include "../../Include/RmlUi/Core/Types.h"
 #include "../../Include/RmlUi/Core/StyleSheetKeywords.h"
 #include "../../Include/RmlUi/Core/StyleSheetKeywords.h"
 #include <math.h>
 #include <math.h>
+#include <cstddef>
 
 
 namespace Rml {
 namespace Rml {
 namespace Core {
 namespace Core {
@@ -261,10 +262,8 @@ float LayoutEngine::ClampHeight(float height, const ComputedValues& computed, fl
 
 
 void* LayoutEngine::AllocateLayoutChunk(size_t RMLUI_UNUSED_ASSERT_PARAMETER(size))
 void* LayoutEngine::AllocateLayoutChunk(size_t RMLUI_UNUSED_ASSERT_PARAMETER(size))
 {
 {
-	RMLUI_UNUSED_ASSERT(size);
-
 	RMLUI_ASSERT(size <= LayoutChunk::size);
 	RMLUI_ASSERT(size <= LayoutChunk::size);
-
+	
 	return layout_chunk_pool.AllocateAndConstruct();
 	return layout_chunk_pool.AllocateAndConstruct();
 }
 }