fix win api

This commit is contained in:
sunsuodong 2021-08-07 11:20:00 +08:00
parent c84e09cf45
commit 765c32f25a
1 changed files with 6 additions and 0 deletions

View File

@ -25,11 +25,17 @@
#include "include/api/dual_abi_helper.h"
#include "include/api/format.h"
#ifndef MS_API
#ifdef _WIN32
#ifdef BUILDING_DLL
#define MS_API __declspec(dllexport)
#else
#define MS_API __declspec(dllimport)
#endif
#else
#define MS_API __attribute__((visibility("default")))
#endif
#endif
namespace mindspore {
enum ModelType : uint32_t {