There is no need to redefine this functions, let's use shared implementation
@@ -15,6 +15,7 @@
#include "BitmapHandler.h"
+#include "../lib/vcmi_endian.h"
#include "../lib/filesystem/Filesystem.h"
#include "../lib/filesystem/ISimpleResourceLoader.h"
#include "../lib/JsonNode.h"
@@ -14,6 +14,7 @@
#include <QBitmap>
#include <QImage>
@@ -8,10 +8,6 @@
*
*/
#pragma once
-//code is copied from vcmiclient/CBitmapHandler.h with minimal changes
-
-#define read_le_u16(p) (* reinterpret_cast<const ui16 *>(p))
-#define read_le_u32(p) (* reinterpret_cast<const ui32 *>(p))