FLANG
windows-include.h
1//===-- include/flang/Common/windows-include.h ------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// Wrapper around windows.h that works around the name conflicts.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef FORTRAN_COMMON_WINDOWS_INCLUDE_H_
14#define FORTRAN_COMMON_WINDOWS_INCLUDE_H_
15
16#ifdef _WIN32
17
18#define WIN32_LEAN_AND_MEAN
19#define NOMINMAX
20
21// Target Windows 2000 and above. This is needed for newer Windows API
22// functions, e.g. GetComputerNameExA()
23#define _WIN32_WINNT 0x0500
24
25#include <windows.h>
26
27#endif // _WIN32
28
29#endif // FORTRAN_COMMON_WINDOWS_INCLUDE_H_