/* SPDX-License-Identifier: BSD-3-Clause * Copyright (c) 2020 Dmitry Kozlyuk */ #ifndef _RTE_WINDOWS_H_ #define _RTE_WINDOWS_H_ /** * @file Windows-specific facilities * * This file should be included by DPDK libraries and applications * that need access to Windows API. It includes platform SDK headers * in compatible order with proper options and defines error-handling macros. */ /* Disable excessive libraries. */ #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif /* Must come first. */ #include #include #include #include #include /* Have GUIDs defined. */ #ifndef INITGUID #define INITGUID #endif #include #include #include /** * Log GetLastError() with context, usually a Win32 API function and arguments. */ #define RTE_LOG_WIN32_ERR(...) \ RTE_LOG(DEBUG, EAL, RTE_FMT("GetLastError()=%lu: " \ RTE_FMT_HEAD(__VA_ARGS__,) "\n", GetLastError(), \ RTE_FMT_TAIL(__VA_ARGS__,))) #endif /* _RTE_WINDOWS_H_ */