Changeset 146
- Timestamp:
- Sep 5, 2010, 8:21:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/openjdk/jdk/src/windows/native/java/lang/java_props_md.c
r86 r146 23 23 * have any questions. 24 24 */ 25 26 #ifdef __WIN32OS2__ 27 #define INCL_DOSMISC 28 #include <os2wrap2.h> 29 #endif 25 30 26 31 #include <windows.h> … … 687 692 /* OS properties */ 688 693 { 694 #ifdef __WIN32OS2__ 695 /* When reporting the OS name and version, we omit the fact that we run 696 * under Odin (that would report itself as a Windows system) and return 697 * the actual OS/2 values which makes more sense. */ 698 699 char buf[100]; 700 701 sprops.os_name = "OS/2"; 702 703 os2_ULONG ver[3]; 704 DosQuerySysInfo(os2_QSV_VERSION_MAJOR, os2_QSV_VERSION_REVISION, 705 &ver, sizeof(ver)); 706 sprintf(buf, "%lu.%lu", ver[0], ver[1]); 707 sprops.os_version = strdup(buf); 708 sprintf(buf, "%lu", ver[3]); 709 sprops.patch_level = strdup(buf); 710 711 sprops.os_arch = "x86"; 712 sprops.desktop = "pm"; 713 #else /* __WIN32OS2__ */ 689 714 char buf[100]; 690 715 OSVERSIONINFOEX ver; … … 830 855 831 856 sprops.desktop = "windows"; 857 #endif /* __WIN32OS2__ */ 832 858 } 833 859
Note:
See TracChangeset
for help on using the changeset viewer.