Skip to content

Commit

Permalink
* Fix MinGW compilation, change version to v1.06
Browse files Browse the repository at this point in the history
  • Loading branch information
iProgramMC committed Jun 23, 2024
1 parent d51fad1 commit 53951a0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ USER_DEFINES =

# WINVER definitions
WINVER ?= 0x0501
WIN32IE ?= 0x0400
WIN32IE ?= 0x0500

# == Don't change below unless you know what you are doing! ==
BUILD_DIR = build
Expand Down
4 changes: 2 additions & 2 deletions src/discord/Util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,12 +495,12 @@ float CompareFuzzy(const std::string& item, const char* query)

float GetAppVersion()
{
return 1.05f;
return 1.06f;
}

std::string GetAppVersionString()
{
return "V1.05";
return "V1.06";
}

std::string FormatDuration(int seconds)
Expand Down
23 changes: 23 additions & 0 deletions src/windows/MissingDefinitions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,29 @@ typedef struct tagLVGROUP
#endif
} LVGROUP, *PLVGROUP;

#ifndef NIF_REALTIME
#define NIF_REALTIME 0x40
#endif
#ifndef NIF_SHOWTIP
#define NIF_SHOWTIP 0x80
#endif
#ifndef NIIF_USER
#define NIIF_USER 0x4
#endif

#ifndef NIN_BALLOONSHOW
#define NIN_BALLOONSHOW (WM_USER + 2)
#endif
#ifndef NIN_BALLOONHIDE
#define NIN_BALLOONHIDE (WM_USER + 3)
#endif
#ifndef NIN_BALLOONTIMEOUT
#define NIN_BALLOONTIMEOUT (WM_USER + 4)
#endif
#ifndef NIN_BALLOONUSERCLICK
#define NIN_BALLOONUSERCLICK (WM_USER + 5)
#endif

#endif // WINVER >= 0x0500

#endif // MINGW_SPECIFIC_HACKS

0 comments on commit 53951a0

Please sign in to comment.