blob: 63835f922023bcdc5739b7ac6bc52bfddb208cc6 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/*
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 <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
#endif
|