Snapdragon® Telematics Application Framework (TelAF) Interface Specification
le_apiFeatures.h
Go to the documentation of this file.
1 
10 #ifndef LEGATO_APIFEATURES_INCLUDE_GUARD
11 #define LEGATO_APIFEATURES_INCLUDE_GUARD
12 
13 //--------------------------------------------------------------------------------------------------
19 //--------------------------------------------------------------------------------------------------
20 #if (defined(__GNUC__) && !defined(__clang__)) || __has_attribute(error)
21 # define LE_FUNC_DISABLED(setting) \
22  __attribute__((error("Function unavailable due to " setting " configuration")))
23 #elif __has_attribute(enable_if)
24 # define LE_FUNC_DISABLED(setting) \
25  __attribute__((enable_if(0, "Function unavailable due to " setting " configuration")))
26 #else
27 # define LE_FUNC_DISABLED(setting)
28 #endif
29 
30 //--------------------------------------------------------------------------------------------------
38 //--------------------------------------------------------------------------------------------------
39 #if LE_CONFIG_LINUX
40 # define LE_FULL_API
41 #else
42 # define LE_FULL_API LE_FUNC_DISABLED("LINUX")
43 #endif
44 
46 #if LE_CONFIG_FILESYSTEM
47 # define LE_API_FILESYSTEM
48 #else
49 # define LE_API_FILESYSTEM LE_FUNC_DISABLED("FILESYSTEM")
50 #endif
51 
52 #endif /* end LEGATO_APIFEATURES_INCLUDE_GUARD */