8198558: Windows does not build without precompiled headers
Reviewed-by: coleenp, mlarsson, lfoltan
--- a/src/hotspot/os/windows/semaphore_windows.hpp Thu Feb 22 18:37:48 2018 +0100
+++ b/src/hotspot/os/windows/semaphore_windows.hpp Thu Feb 22 16:29:10 2018 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -27,7 +27,7 @@
#include "memory/allocation.hpp"
-#include <windef.h>
+#include <windows.h>
class WindowsSemaphore : public CHeapObj<mtInternal> {
HANDLE _semaphore;
--- a/src/hotspot/os/windows/sharedRuntimeRem.cpp Thu Feb 22 18:37:48 2018 +0100
+++ b/src/hotspot/os/windows/sharedRuntimeRem.cpp Thu Feb 22 16:29:10 2018 +0100
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -23,6 +23,7 @@
*/
#include "precompiled.hpp"
+#include "runtime/sharedRuntime.hpp"
#ifdef _WIN64
// These are copied defines from fdlibm.h, this allows us to keep the code