diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-03-24 01:29:09 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-03-24 01:29:09 +0000 |
commit | cf6cacac241244490f8321a49c06199f86c6f325 (patch) | |
tree | 3036774d1ee5c193e1704ceb6e61c04a6be63407 /win32 | |
parent | b2af26b13be5ac143d7c7e58ef2458b8b3103485 (diff) | |
download | perl-cf6cacac241244490f8321a49c06199f86c6f325.tar.gz |
flip release & version in win32_uname()
p4raw-id: //depot/perl@3135
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/win32/win32.c b/win32/win32.c index a43d10882c..5d2bdaa5f1 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1158,16 +1158,16 @@ win32_uname(struct utsname *name) break; } - /* version */ - sprintf(name->version, "%d.%d", + /* release */ + sprintf(name->release, "%d.%d", osver.dwMajorVersion, osver.dwMinorVersion); - /* release */ - sprintf(name->release, "Build %d", + /* version */ + sprintf(name->version, "Build %d", osver.dwPlatformId == VER_PLATFORM_WIN32_NT ? osver.dwBuildNumber : (osver.dwBuildNumber & 0xffff)); if (osver.szCSDVersion[0]) { - char *buf = name->release + strlen(name->release); + char *buf = name->version + strlen(name->version); sprintf(buf, " (%s)", osver.szCSDVersion); } } |