8198558: Windows does not build without precompiled headers
authorstuefe
Thu, 22 Feb 2018 16:29:10 +0100
changeset 49051 f05f4b5cea20
parent 49050 170c7b36aea6
child 49052 75f4ad82866c
8198558: Windows does not build without precompiled headers Reviewed-by: coleenp, mlarsson, lfoltan
src/hotspot/os/windows/semaphore_windows.hpp
src/hotspot/os/windows/sharedRuntimeRem.cpp
--- 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