Skip to content

Commit

Permalink
fix: exports for win32
Browse files Browse the repository at this point in the history
fixed #33
  • Loading branch information
Exle committed Jun 9, 2024
1 parent e9caca9 commit 67b5402
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/aimp-sdk-cpp-wrapper
2 changes: 1 addition & 1 deletion src/aimp_discord_presence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

DiscordRichPresence discord_presence;

extern "C" __declspec(dllexport) HRESULT WINAPI AIMPPluginGetHeader(void** Header) {
__declspec(dllexport) HRESULT WINAPI AIMPPluginGetHeader(void** Header) {
*Header = new AimpDiscordPresence();
return S_OK;
}
Expand Down
4 changes: 4 additions & 0 deletions src/aimp_discord_presence.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
LIBRARY "aimp_discordPresence"

EXPORTS
AIMPPluginGetHeader
2 changes: 1 addition & 1 deletion src/cmakelists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ else()
set( RUNTIME_OUTPUT_DIR_DEBUG "${CMAKE_CURRENT_SOURCE_DIR}/../output/Debug/${TARGET_NAME}/x64" )
endif()

OPTION( AUTOVERSIONING "Autoversioning" OFF )
option( AUTOVERSIONING "Autoversioning" OFF )

file( STRINGS "product.version" PRVERSION )

Expand Down
1 change: 0 additions & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#define PL_VERSION_RELEASE V_RELEASE
#define PL_VERSION_BUILD V_BUILD


#define STR(x) #x
#define STRNAME(name) STR(name)

Expand Down

0 comments on commit 67b5402

Please sign in to comment.