mirror of
https://github.com/openharmony/ace_napi.git
synced 2026-07-21 16:55:22 -04:00
4efc4d66ec
Signed-off-by: sunfei <sunfei.sun@huawei.com> Change-Id: If0b3c209f889c456bde88cdbcc24511bf46d8d21
27 lines
909 B
C
27 lines
909 B
C
/*
|
|
* Copyright (c) 2021 Huawei Device Co., Ltd.
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef FOUNDATION_ACE_NAPI_UTILS_MACROS_H
|
|
#define FOUNDATION_ACE_NAPI_UTILS_MACROS_H
|
|
|
|
#ifndef NAPI_EXPORT
|
|
#ifdef WINDOWS_PLATFORM
|
|
#define NAPI_EXPORT __declspec(dllexport)
|
|
#else
|
|
#define NAPI_EXPORT __attribute__((visibility("default")))
|
|
#endif
|
|
#endif
|
|
|
|
#endif /* FOUNDATION_ACE_NAPI_UTILS_MACROS_H */ |