node/deps/v8/test/unittests/avoid-windows-h-includes.cc
Michaël Zasso 270253c4e2
deps: update V8 to 9.7.106.18
PR-URL: https://github.com/nodejs/node/pull/40907
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2022-01-20 10:38:37 +01:00

14 lines
538 B
C++

// Copyright 2021 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Include heap-inl.h to make sure that neither it nor its transitive includes
// pull in windows.h.
#include "src/heap/heap-inl.h"
// This should be after all other #includes.
#if defined(_WINDOWS_) // Detect whether windows.h was included.
// See base/win/windows_h_disallowed.h for details.
#error Windows.h was included unexpectedly.
#endif // defined(_WINDOWS_)