< prev index next >
src/java.desktop/windows/native/libawt/windows/awt.h
Print this page
rev 17494 : Fix for JDK-8178361 enhancement
*** 161,170 ****
--- 161,173 ----
* IS_WINVISTA returns TRUE on Vista
*/
#define IS_WIN2000 (LOBYTE(LOWORD(::GetVersion())) >= 5)
#define IS_WINXP ((IS_WIN2000 && HIBYTE(LOWORD(::GetVersion())) >= 1) || LOBYTE(LOWORD(::GetVersion())) > 5)
#define IS_WINVISTA (LOBYTE(LOWORD(::GetVersion())) >= 6)
+ #define IS_WIN8 (\
+ (IS_WINVISTA && (HIBYTE(LOWORD(::GetVersion())) >= 2)) ||\
+ (LOBYTE(LOWORD(::GetVersion())) > 6))
#define IS_WINVER_ATLEAST(maj, min) \
((maj) < LOBYTE(LOWORD(::GetVersion())) || \
(maj) == LOBYTE(LOWORD(::GetVersion())) && \
(min) <= HIBYTE(LOWORD(::GetVersion())))
< prev index next >