Skip to content

Commit

Permalink
msys: fixed version handling
Browse files Browse the repository at this point in the history
there is no CYGWIN_VERSION_DLL_EPOCH anymore. epoch and major has to be calculated.
define CYGWIN_VERSION_DLL_MAJOR 3004 means version 3.4.x.
  • Loading branch information
mahaase authored and jkloetzke committed Aug 21, 2023
1 parent 4b44fbb commit 52c9fde
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pym/bob/languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,13 @@
{
#if defined(CYGWIN_VERSION_DLL_IDENTIFIER)
printf("%s/%d.%d.%d\n", CYGWIN_VERSION_DLL_IDENTIFIER,
#ifdef CYGWIN_VERSION_DLL_EPOCH
CYGWIN_VERSION_DLL_EPOCH,
CYGWIN_VERSION_DLL_MAJOR,
#else
CYGWIN_VERSION_DLL_MAJOR / 1000,
CYGWIN_VERSION_DLL_MAJOR % 1000,
#endif
CYGWIN_VERSION_DLL_MINOR);
#elif defined(__MSVCRT_VERSION__)
printf("mingw%d/msvcrt-%03x\n",
Expand Down

0 comments on commit 52c9fde

Please sign in to comment.