ZClk  0.1.0-alpha.3
Library to build cli programs
zclk_common.h
1 // Copyright (c) 2020 Abhishek Mishra
2 //
3 // This software is released under the MIT License.
4 // https://opensource.org/licenses/MIT
5 
6 #ifndef SRC_ZCLK_COMMON_H_
7 #define SRC_ZCLK_COMMON_H_
8 
9 #include <stdlib.h>
10 
11 #define MODULE_API_EXPORTS
12 #ifdef _WIN32
13 # ifdef MODULE_API_EXPORTS
14 # define MODULE_API __declspec(dllexport)
15 # else
16 # define MODULE_API __declspec(dllimport)
17 # endif
18 #else
19 # define MODULE_API
20 #endif
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
34 MODULE_API char* zclk_str_clone(const char* from);
35 
36 #ifdef __cplusplus
37 }
38 #endif
39 
40 #endif /* SRC_ZCLK_COMMON_H_ */