equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
562 sprops.os_name = "Windows (unknown)"; |
562 sprops.os_name = "Windows (unknown)"; |
563 break; |
563 break; |
564 } |
564 } |
565 sprintf(buf, "%d.%d", majorVersion, minorVersion); |
565 sprintf(buf, "%d.%d", majorVersion, minorVersion); |
566 sprops.os_version = _strdup(buf); |
566 sprops.os_version = _strdup(buf); |
567 #if _M_AMD64 |
567 #if defined(_M_AMD64) |
568 sprops.os_arch = "amd64"; |
568 sprops.os_arch = "amd64"; |
569 #elif _X86_ |
569 #elif defined(_X86_) |
570 sprops.os_arch = "x86"; |
570 sprops.os_arch = "x86"; |
571 #else |
571 #else |
572 sprops.os_arch = "unknown"; |
572 sprops.os_arch = "unknown"; |
573 #endif |
573 #endif |
574 } |
574 } |