/* Copyright (C) 2019-2020, Dirk Krause SPDX-License-Identifier: BSD-3-Clause */ /* WARNING: This file was generated by the dkct program (see http://dktools.sourceforge.net/ for details). Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: dk3use.ctr */ #ifndef DK3USE_H_INCLUDED /** Avoid multiple inclusions. */ #define DK3USE_H_INCLUDED 1 #line 8 "dk3use.ctr" /** @file dk3use.h Define constants which feature to use. */ #ifndef DK3CONF_H_INCLUDED #include #endif /* For cross-compiled programs wchar_t string output failed after _setmode(_fileno(stdout), _O_U16TEXT); */ #ifndef DK3_USE_SETMODE_UTF16 #if DK3_ON_WINDOWS && (DK3_CHAR_SIZE > 1) && defined(_MSC_VER) /** Use _setmode() before writing wchar_t strings on Windows. */ #define DK3_USE_SETMODE_UTF16 1 #else /** Do not use _setmode() before writing wchar_t strings on Windows. */ #define DK3_USE_SETMODE_UTF16 0 #endif #endif /* Here we keep the possibility to select more detailed where to use _setmode(_fileno(stdout), _O_BINARY); and back. */ #ifndef DK3_USE_SETMODE_BINARY #if DK3_ON_WINDOWS /* && defined(_MSC_VER) */ #define DK3_USE_SETMODE_BINARY 1 #else #define DK3_USE_SETMODE_BINARY 0 #endif #endif #endif