Skip to content

Commit eb0f993

Browse files
authored
Merge pull request #526 from mahaase/bugfix/msys-version
msys: fixed version handling
2 parents 3b3f97f + 9e6a031 commit eb0f993

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pym/bob/languages.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,13 @@
4545
{
4646
#if defined(CYGWIN_VERSION_DLL_IDENTIFIER)
4747
printf("%s/%d.%d.%d\n", CYGWIN_VERSION_DLL_IDENTIFIER,
48+
#ifdef CYGWIN_VERSION_DLL_EPOCH
4849
CYGWIN_VERSION_DLL_EPOCH,
4950
CYGWIN_VERSION_DLL_MAJOR,
51+
#else
52+
CYGWIN_VERSION_DLL_MAJOR / 1000,
53+
CYGWIN_VERSION_DLL_MAJOR % 1000,
54+
#endif
5055
CYGWIN_VERSION_DLL_MINOR);
5156
#elif defined(__MSVCRT_VERSION__)
5257
printf("mingw%d/msvcrt-%03x\n",

0 commit comments

Comments
 (0)