diff --git a/hyperdbg/include/platform/user/code/platform-lib-calls.c b/hyperdbg/include/platform/user/code/platform-lib-calls.c index 56f78020..803a253a 100644 --- a/hyperdbg/include/platform/user/code/platform-lib-calls.c +++ b/hyperdbg/include/platform/user/code/platform-lib-calls.c @@ -9,7 +9,11 @@ * @copyright This project is released under the GNU Public License v3. * */ -#include "platform/user/header/platform-lib-calls.h" +#include "pch.h" + +#if defined(__linux__) +# include "../header/platform-lib-calls.h" +#endif // defined(__linux__) /** * @brief Platform independent wrapper for vsprintf_s / vsnprintf @@ -28,7 +32,7 @@ PlatformVsnprintf(char * Buffer, SIZE_T BufferSize, const char * Format, va_list #elif defined(__linux__) return vsnprintf(Buffer, BufferSize, Format, ArgList); #else -# error "Unsupported platform" +# error "Unsupported platform" #endif } @@ -46,7 +50,7 @@ PlatformStrDup(const char * Str) #elif defined(__linux__) return strdup(Str); #else -# error "Unsupported platform" +# error "Unsupported platform" #endif } @@ -64,6 +68,6 @@ PlatformZeroMemory(PVOID Buffer, SIZE_T Size) #elif defined(__linux__) memset(Buffer, 0, Size); #else -# error "Unsupported platform" +# error "Unsupported platform" #endif } diff --git a/hyperdbg/script-engine/header/pch.h b/hyperdbg/script-engine/header/pch.h index aed90315..e51ebe45 100644 --- a/hyperdbg/script-engine/header/pch.h +++ b/hyperdbg/script-engine/header/pch.h @@ -30,7 +30,7 @@ // Windows Header Files // #ifdef _WIN32 -#include +# include #endif #include @@ -54,6 +54,11 @@ #include "parse-table.h" #include "hardware.h" +// +// Platform-specific library calls +// +#include "platform/user/header/platform-lib-calls.h" + // // Import/export definitions // diff --git a/hyperdbg/script-engine/script-engine.vcxproj b/hyperdbg/script-engine/script-engine.vcxproj index 3d3b8b73..dfe4b2d0 100644 --- a/hyperdbg/script-engine/script-engine.vcxproj +++ b/hyperdbg/script-engine/script-engine.vcxproj @@ -128,6 +128,7 @@ exit /b 0 + @@ -139,6 +140,7 @@ exit /b 0 + diff --git a/hyperdbg/script-engine/script-engine.vcxproj.filters b/hyperdbg/script-engine/script-engine.vcxproj.filters index 597ae621..c41bb19a 100644 --- a/hyperdbg/script-engine/script-engine.vcxproj.filters +++ b/hyperdbg/script-engine/script-engine.vcxproj.filters @@ -12,6 +12,9 @@ {53ae7bcb-e612-4a1a-89db-de1e77f2d730} + + {45bab125-0b6b-4791-bb0e-eace92a93baa} + @@ -41,6 +44,9 @@ header + + header\platform + @@ -70,5 +76,8 @@ code + + code\platform + \ No newline at end of file