Fix MSVC dll building

This commit is contained in:
2026-01-29 20:17:04 +01:00
parent 1ec06a26cc
commit 683c226ce0
7 changed files with 21 additions and 15 deletions

View File

@@ -83,7 +83,8 @@ constexpr static KbKey Kb_F11 = KbKey::Flag(47);
constexpr static KbKey Kb_F12 = KbKey::Flag(48);
constexpr static KbKey Kb_MouseLeft = KbKey::Flag(120);
} // namespace HidKb
class HidDriver {
class PD_API HidDriver {
public:
enum Flags : u32 {
Flags_None = 0,

View File

@@ -91,7 +91,7 @@ class PD_API DrawList {
void SetFontScale(float scale) { pFontScale = scale; }
void DrawSolid();
void DrawTexture(Texture::Ref tex) { CurrentTex = tex; }
void DrawTexture(Texture::Ref tex);
// SECTION: Draw API //

View File

@@ -24,7 +24,7 @@ SOFTWARE.
*/
/** Generated with ppam */
#ifndef PD_BUILD_STATIC
#ifdef _WIN32 // Windows (MSVC Tested)
#ifdef PD_BUILD_SHARED
#define PD_API __declspec(dllexport)
@@ -49,3 +49,6 @@ SOFTWARE.
#else
#define PD_API
#endif
#else
#define PD_API
#endif

View File

@@ -34,6 +34,7 @@ SOFTWARE.
namespace PD {
namespace UI7 {
class Context;
class PD_API Layout {
public:
Layout(const ID& id, IO::Ref io) : ID(id) {
@@ -172,7 +173,7 @@ class PD_API Layout {
private:
friend class Menu;
friend class Context;
friend class PD::UI7::Context;
friend class ReMenu;
// Base Components
UI7::ID ID;