Skip to content

Commit df592b1

Browse files
committed
fix: definition dublication
1 parent 5379eae commit df592b1

2 files changed

Lines changed: 0 additions & 24 deletions

File tree

src/memaccessor.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,3 @@
33
// Copyright (C) 2023-2025 Vladimir Ezhikov (Wend4r), Borys Komashchenko (Phoenix), Nikita Ushakov (qubka)
44
// Licensed under the MIT license. See LICENSE file in the project root for details.
55
//
6-
7-
#ifdef DYNLIBUTILS_SEPARATE_SOURCE_FILES
8-
#if DYNLIBUTILS_PLATFORM_WINDOWS
9-
#include "windows/memaccessor.cpp"
10-
#elif DYNLIBUTILS_PLATFORM_LINUX
11-
#include "linux/memaccessor.cpp"
12-
#elif DYNLIBUTILS_PLATFORM_APPLE
13-
#include "apple/memaccessor.cpp"
14-
#else
15-
#error "Unsupported platform"
16-
#endif
17-
#endif

src/memprotector.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,3 @@ CMemProtector::~CMemProtector() {
2323

2424
CMemAccessor::MemProtect(m_address, m_length, m_origProtection, m_status);
2525
}
26-
27-
#ifdef DYNLIBUTILS_SEPARATE_SOURCE_FILES
28-
#if DYNLIBUTILS_PLATFORM_WINDOWS
29-
#include "windows/memprotector.cpp"
30-
#elif DYNLIBUTILS_PLATFORM_LINUX
31-
#include "linux/memprotector.cpp"
32-
#elif DYNLIBUTILS_PLATFORM_APPLE
33-
#include "apple/memprotector.cpp"
34-
#else
35-
#error "Unsupported platform"
36-
#endif
37-
#endif

0 commit comments

Comments
 (0)