forked from mindspore-Ecosystem/mindspore
fix win api
This commit is contained in:
parent
c84e09cf45
commit
765c32f25a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue