#ifndef HEADER_CURL_TOOL_BINMODE_H1#define HEADER_CURL_TOOL_BINMODE_H2/***************************************************************************3* _ _ ____ _4* Project ___| | | | _ \| |5* / __| | | | |_) | |6* | (__| |_| | _ <| |___7* \___|\___/|_| \_\_____|8*9* Copyright (C) Daniel Stenberg, <[email protected]>, et al.10*11* This software is licensed as described in the file COPYING, which12* you should have received as part of this distribution. The terms13* are also available at https://curl.se/docs/copyright.html.14*15* You may opt to use, copy, modify, merge, publish, distribute and/or sell16* copies of the Software, and permit persons to whom the Software is17* furnished to do so, under the terms of the COPYING file.18*19* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY20* KIND, either express or implied.21*22* SPDX-License-Identifier: curl23*24***************************************************************************/25#include "tool_setup.h"2627#if (defined(HAVE_SETMODE) || defined(HAVE__SETMODE)) && defined(O_BINARY)28/* Requires io.h and/or fcntl.h when available */29#ifdef HAVE__SETMODE30# define CURL_SET_BINMODE(stream) (void)_setmode(fileno(stream), O_BINARY)31#else32# define CURL_SET_BINMODE(stream) (void)setmode(fileno(stream), O_BINARY)33#endif34#else35# define CURL_SET_BINMODE(stream) (void)stream; tool_nop_stmt36#endif3738#endif /* HEADER_CURL_TOOL_BINMODE_H */394041