kdriveExpress SDK 22.1.1
kdrive_express_config.h
Go to the documentation of this file.
1//
2// Copyright (c) 2002-2022 WEINZIERL ENGINEERING GmbH
3// All rights reserved.
4//
5// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
7// FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
8// SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY,
9// WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
10// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
11//
12
13#ifndef __KDRIVE_EXPRESS_CONFIG_H__
14#define __KDRIVE_EXPRESS_CONFIG_H__
15
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22/*******************************
23** Type Definitions
24********************************/
25
26#ifndef KDRIVE_TYPES
27#define KDRIVE_TYPES
28
29typedef unsigned char uint8_t;
30typedef unsigned short uint16_t;
31typedef unsigned int uint32_t;
32typedef signed char int8_t;
33typedef short int16_t;
34typedef int int32_t;
35typedef float float32_t;
37#endif /* KDRIVE_TYPES */
38
39/*******************************
40** Error Type
41********************************/
42
43#ifndef KDRIVE_ERROR_TYPE
44#define KDRIVE_ERROR_TYPE
45
47
48#endif /* KDRIVE_ERROR_TYPE */
49
50/*******************************
51** Bool Type
52********************************/
53
54#ifndef KDRIVE_BOOL_TYPE
55#define KDRIVE_BOOL_TYPE
56
58
59#endif /* KDRIVE_BOOL_TYPE */
60
61#ifdef __cplusplus
62}
63#endif
64
65/*******************************
66** WIN32 DLL Import Export
67********************************/
68
69#if defined(_WIN32) && defined(_DLL)
70#if !defined(KDRIVE_EXPRESS_DLL) && !defined(KDRIVE_EXPRESS_STATIC)
71#define KDRIVE_EXPRESS_DLL
72#endif
73#endif
74
75#if defined(_WIN32) && defined(KDRIVE_EXPRESS_DLL)
76#if defined(kdriveExpress_EXPORTS)
77#define kdriveExpress_API __declspec(dllexport)
78#else
79#define kdriveExpress_API __declspec(dllimport)
80#endif
81#endif
82
83#if defined (__GNUC__) && (__GNUC__ >= 4)
84#define kdriveExpress_API __attribute__ ((visibility ("default")))
85#endif
86
87#if !defined(kdriveExpress_API)
88#define kdriveExpress_API
89#endif
90
91#endif /* __KDRIVE_EXPRESS_CONFIG_H__ */
unsigned short uint16_t
16 bit unsigned char
Definition: kdrive_express_config.h:30
int int32_t
32 bit signed int
Definition: kdrive_express_config.h:34
unsigned int uint32_t
32 bit unsigned char
Definition: kdrive_express_config.h:31
float float32_t
32 bit single precision float
Definition: kdrive_express_config.h:35
int32_t error_t
Definition: kdrive_express_config.h:46
int32_t bool_t
Definition: kdrive_express_config.h:57
short int16_t
16 bit signed int
Definition: kdrive_express_config.h:33
unsigned char uint8_t
8 bit unsigned char
Definition: kdrive_express_config.h:29
signed char int8_t
8 bit signed char
Definition: kdrive_express_config.h:32