blob: 441afe1fe8dc2c79a15333a98db270e515707f39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
%% options
copyright owner = Dirk Krause
copyright year = 2019-xxxx
SPDX-License-Identifier: BSD-3-Clause
%% header
/** @file dk3use.h Define constants which feature to use.
*/
#ifndef DK3CONF_H_INCLUDED
#include <dk3conf.h>
#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
|