X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fdali-toolkit-common.h;h=fe653c5503397d5f7398a6c290901ae32dd99ffb;hp=56f39273f52876d3b291e57598080731b8398a98;hb=1d82abb8a1a514ce0af63004706135fb7883f89b;hpb=e40f95b837ab8e9f1ce9094ebf4e6ac781e7bf6f diff --git a/dali-toolkit/public-api/dali-toolkit-common.h b/dali-toolkit/public-api/dali-toolkit-common.h old mode 100755 new mode 100644 index 56f3927..fe653c5 --- a/dali-toolkit/public-api/dali-toolkit-common.h +++ b/dali-toolkit/public-api/dali-toolkit-common.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_COMMON_H /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -32,14 +32,24 @@ * When building a library that uses DALI, HIDE_DALI_INTERNALS. */ #if __GNUC__ >= 4 -# ifndef HIDE_DALI_INTERNALS -# define DALI_TOOLKIT_API -# else -# define DALI_TOOLKIT_API __attribute__ ((visibility ("default"))) -# endif +#ifndef HIDE_DALI_INTERNALS +#define DALI_TOOLKIT_API +#else +#define DALI_TOOLKIT_API __attribute__((visibility("default"))) +#endif +#else +#ifdef WIN32 +#ifdef BUILDING_DALI_TOOLKIT +/** Visibility attribute to hide declarations */ +#define DALI_TOOLKIT_API __declspec(dllexport) +#else +/** Visibility attribute to hide declarations */ +#define DALI_TOOLKIT_API __declspec(dllimport) +#endif #else /** Visibility attribute to show declarations */ -# define DALI_TOOLKIT_API +#define DALI_TOOLKIT_API +#endif #endif #endif // DALI_TOOLKIT_COMMON_H