2 * Copyright 2016 Facebook, Inc.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 // Only do anything if we are on windows.
21 // This header is intended to be used in-place of including <Windows.h>,
22 // <WinSock2.h>, <io.h> or <direct.h>.
23 // It includes all of them, and undefines certain names defined by them that
24 // are used in places in Folly.
26 // These have to be this way because we define our own versions
27 // of close(), because the normal Windows versions don't handle
32 #include <io.h> // nolint
33 #include <direct.h> // nolint
36 #include <io.h> // nolint
37 #include <direct.h> // nolint
52 // Defined in the GDI interface.
57 // Defined in minwindef.h
62 // Defined in winerror.h
67 // Defined in minwindef.h
72 // Defined in minwindef.h
77 // Defined in Winbase.h