macosx/osal_defs.h
Go to the documentation of this file.
1 /*
2  * Licensed under the GNU General Public License version 2 with exceptions. See
3  * LICENSE file in the project root for full license information
4  */
5 
6 #ifndef _osal_defs_
7 #define _osal_defs_
8 
9 #ifdef __cplusplus
10 extern "C"
11 {
12 #endif
13 
14 // define if debug printf is needed
15 //#define EC_DEBUG
16 
17 #ifdef EC_DEBUG
18 #define EC_PRINT printf
19 #else
20 #define EC_PRINT(...) do {} while (0)
21 #endif
22 
23 #ifndef PACKED
24 #define PACKED_BEGIN
25 #define PACKED __attribute__((__packed__))
26 #define PACKED_END
27 #endif
28 
29 #include <pthread.h>
30 #define OSAL_THREAD_HANDLE pthread_t *
31 #define OSAL_THREAD_FUNC void
32 #define OSAL_THREAD_FUNC_RT void
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif


soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Wed Mar 2 2022 01:01:49