1 // Copyright 2022 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef QUICHE_COMMON_PLATFORM_DEFAULT_QUICHE_PLATFORM_IMPL_QUICHE_IOVEC_IMPL_H_ 6 #define QUICHE_COMMON_PLATFORM_DEFAULT_QUICHE_PLATFORM_IMPL_QUICHE_IOVEC_IMPL_H_ 7 8 #include "quiche/common/platform/api/quiche_export.h" 9 10 #if defined(_WIN32) 11 12 // See <https://pubs.opengroup.org/onlinepubs/009604599/basedefs/sys/uio.h.html> 13 struct QUICHE_EXPORT iovec { 14 void* iov_base; 15 size_t iov_len; 16 }; 17 18 #else 19 20 #include <sys/uio.h> // IWYU pragma: export 21 22 #endif // defined(_WIN32) 23 24 #endif // QUICHE_COMMON_PLATFORM_DEFAULT_QUICHE_PLATFORM_IMPL_QUICHE_IOVEC_IMPL_H_ 25