CCAux  2.20.0.0
CCAux API reference
CCPlatform.h
Go to the documentation of this file.
1 
2 /*
3  * Copyright (C) 2023 CrossControl AB
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; with
8  * version 2.1 of the License.
9  */
10 /*
11  * File description:
12  * Platform dependent defines
13  *
14  ************************************************/
15 
16 #ifndef PLATFORM__H
17 #define PLATFORM__H
18 
19 /****************************************************************************
20 // CALLING CONVENTION DEFINES
21 ****************************************************************************/
22 #ifdef __cplusplus
23 #ifndef EXTERN_C
24 #define EXTERN_C extern "C"
25 #endif /* #ifndef EXTERN_C */
26 #else
27 #define EXTERN_C
28 #endif
29 
30 /* Calling conventions */
31 #define CCAUXDLL_API EXTERN_C
32 #define CCAUXDLL_CALLING_CONV
33 
34 /****************************************************************************
35 // CHARACTER TYPE
36 ****************************************************************************/
37 #include <wchar.h>
38 #if defined(_UNICODE) || defined(UNICODE)
39 #define LPCTSTR whcar_t const *
40 #define TCHAR wchar_t
41 #define _T(x) L##x
42 #else
43 #ifndef LPCTSTR
44 #define LPCTSTR char_t const *
45 #endif
46 #ifndef TCHAR
47 #define TCHAR char_t
48 #endif
49 #ifndef _T
50 #define _T(x) x
51 #endif
52 #endif
53 
54 #endif /* PLATFORM__H */