try to fix code style
This commit is contained in:
@@ -34,7 +34,8 @@
|
||||
#endif
|
||||
|
||||
#if defined(OPENVINO_STATIC_LIBRARY) || defined(__GNUC__) && (__GNUC__ < 4)
|
||||
# define INFERENCE_ENGINE_C_API(...) INFERENCE_ENGINE_C_API_EXTERN __VA_ARGS__ OPENVINO_DEPRECATED("The Inference Engine API is deprecated.")
|
||||
# define INFERENCE_ENGINE_C_API(...) \
|
||||
INFERENCE_ENGINE_C_API_EXTERN __VA_ARGS__ OPENVINO_DEPRECATED("The Inference Engine API is deprecated.")
|
||||
# define IE_NODISCARD
|
||||
#else
|
||||
# if defined(_WIN32) || defined(__CYGWIN__)
|
||||
@@ -42,13 +43,15 @@
|
||||
# ifdef openvino_c_EXPORTS
|
||||
# define INFERENCE_ENGINE_C_API(...) INFERENCE_ENGINE_C_API_EXTERN __declspec(dllexport) __VA_ARGS__ __cdecl
|
||||
# else
|
||||
# define INFERENCE_ENGINE_C_API(...) \
|
||||
INFERENCE_ENGINE_C_API_EXTERN __declspec(dllimport) OPENVINO_DEPRECATED("The Inference Engine API is deprecated.") __cdecl
|
||||
# define INFERENCE_ENGINE_C_API(...) \
|
||||
INFERENCE_ENGINE_C_API_EXTERN __declspec(dllimport) \
|
||||
__VA_ARGS__ OPENVINO_DEPRECATED("The Inference Engine API is deprecated.") __cdecl
|
||||
# endif
|
||||
# define IE_NODISCARD
|
||||
# else
|
||||
# define INFERENCE_ENGINE_C_API(...) \
|
||||
INFERENCE_ENGINE_C_API_EXTERN __attribute__((visibility("default"))) __VA_ARGS__ OPENVINO_DEPRECATED("The Inference Engine API is deprecated.")
|
||||
# define INFERENCE_ENGINE_C_API(...) \
|
||||
INFERENCE_ENGINE_C_API_EXTERN __attribute__((visibility("default"))) \
|
||||
__VA_ARGS__ OPENVINO_DEPRECATED("The Inference Engine API is deprecated.")
|
||||
# define IE_NODISCARD __attribute__((warn_unused_result))
|
||||
# endif
|
||||
#endif
|
||||
@@ -1160,4 +1163,4 @@ INFERENCE_ENGINE_C_API(void) ie_shutdown();
|
||||
|
||||
OPENVINO_SUPPRESS_DEPRECATED_END
|
||||
|
||||
#endif // IE_C_API_H
|
||||
#endif // IE_C_API_H
|
||||
|
||||
Reference in New Issue
Block a user