Skip to content

Commit

Permalink
&& 0 == c_strcmp(ONNX_USE_PROTOBUF_SHARED_LIBS, OPTION_ON))
Browse files Browse the repository at this point in the history
Signed-off-by: jcwchen <jacky82226@gmail.com>
  • Loading branch information
jcwchen committed Oct 19, 2023
1 parent e528f0d commit 01e6167
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onnx/onnx_pb.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// different declarations (dllexport and dllimport). On Linux/Mac, it just
// resolves to the same "default visibility" setting.
#if defined(_MSC_VER)
#if (defined(ONNX_USE_PROTOBUF_SHARED_LIBS) && ONNX_USE_PROTOBUF_SHARED_LIBS == OPTION_ON) || defined(ONNX_BUILD_MAIN_LIB)
#if (defined(ONNX_USE_PROTOBUF_SHARED_LIBS) && 0 == c_strcmp(ONNX_USE_PROTOBUF_SHARED_LIBS, OPTION_ON)) || defined(ONNX_BUILD_MAIN_LIB)
#define ONNX_EXPORT __declspec(dllexport)
#define ONNX_IMPORT __declspec(dllimport)
#else
Expand Down Expand Up @@ -43,7 +43,7 @@
//
// This solution is similar to
// https://github.com/pytorch/pytorch/blob/master/caffe2/core/common.h
#if (defined(ONNX_USE_PROTOBUF_SHARED_LIBS) && ONNX_USE_PROTOBUF_SHARED_LIBS == OPTION_ON) || defined(ONNX_BUILD_MAIN_LIB)
#if (defined(ONNX_USE_PROTOBUF_SHARED_LIBS) && 0 == c_strcmp(ONNX_USE_PROTOBUF_SHARED_LIBS, OPTION_ON)) || defined(ONNX_BUILD_MAIN_LIB)
#define ONNX_API ONNX_EXPORT
#else
#define ONNX_API ONNX_IMPORT
Expand Down

0 comments on commit 01e6167

Please sign in to comment.