remove \r
[extl.git] / extl / win / config / suffix.h
blob69957f763b7aecb017c5cf5067bf5c83d40ec8f4
1 /* ///////////////////////////////////////////////////////////////////////
2 * File: config.h
4 * Created: 08.06.26
5 * Updated: 08.06.26
7 * Brief: suffix configuration
9 * [<Home>]
10 * Copyright (c) 2008-2020, Waruqi All rights reserved.
11 * //////////////////////////////////////////////////////////////////// */
13 #ifndef EXTL_PLATFORM_WIN_CONFIG_SUFFIX_H
14 #define EXTL_PLATFORM_WIN_CONFIG_SUFFIX_H
16 /* ///////////////////////////////////////////////////////////////////////
17 * The conversion between BOOL and bool
19 #ifdef __cplusplus
20 /* ///////////////////////////////////////////////////////////////////////
21 * extl::platform::win namespace
23 EXTL_WIN_BEGIN_WHOLE_NAMESPACE
25 /// BOOL to bool
26 inline bool BOOL2bool(BOOL bVal)
28 return bVal != FALSE;
30 /// bool to BOOL
31 inline BOOL bool2BOOL(bool bVal)
33 return bVal != false;
35 /* ///////////////////////////////////////////////////////////////////////
36 * extl::platform::win namespace
38 EXTL_WIN_END_WHOLE_NAMESPACE
39 /* //////////////////////////////////////////////////////////////////// */
40 #else
41 # define BOOL2bool(bVal) (bool)((bVal) != FALSE))
42 # define bool2BOOL(bVal) (BOOL)((bVal) != false))
43 #endif
45 /* ///////////////////////////////////////////////////////////////////////
46 * The maximum size of path
48 #ifdef MAX_PATH
49 # define EXTL_MAX_PATH MAX_PATH
50 #else
51 # define EXTL_MAX_PATH 256
52 #endif
54 /* //////////////////////////////////////////////////////////////////// */
55 #endif /* EXTL_PLATFORM_WIN_CONFIG_SUFFIX_H */
56 /* //////////////////////////////////////////////////////////////////// */