[windows] Use correct macro for exporting symbols 85/245785/2
authorWander Lairson Costa <wander.lairson@gmail.com>
Thu, 15 Oct 2020 14:58:32 +0000 (11:58 -0300)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 17 Nov 2020 17:57:13 +0000 (17:57 +0000)
DALI_IMPORT_API isn't defined on Windows, the correct macro is
DALI_CORE_API, which is defined to nothing on unix (like
DALI_IMPORT_API), and __declspec(dllexport/dllimport) on Windows.

Change-Id: I6150640eb67dbbcc78230d1a8fb1085538edff45

dali/devel-api/adaptor-framework/offscreen-application.h
dali/devel-api/adaptor-framework/offscreen-window.h

index 3daa735..d03d99b 100644 (file)
@@ -23,6 +23,9 @@
 #include <dali/public-api/object/base-handle.h>
 #include <dali/public-api/signals/dali-signal.h>
 
+// INTERNAL INCLUDES
+#include <dali/public-api/dali-adaptor-common.h>
+
 namespace Dali
 {
 /**
@@ -41,7 +44,7 @@ class OffscreenApplication;
  * @brief Appliations can draw UI on offscreen surface with the OffscreenApplication.
  * When you use a OffscreenApplication, you don't have to create a Window.
  */
-class DALI_IMPORT_API OffscreenApplication : public Dali::BaseHandle
+class DALI_ADAPTOR_API OffscreenApplication : public Dali::BaseHandle
 {
 public:
   using OffscreenApplicationSignalType = Signal<void(void)>;
index 23386cd..5e2b502 100644 (file)
@@ -24,6 +24,9 @@
 #include <dali/public-api/object/any.h>
 #include <dali/public-api/signals/dali-signal.h>
 
+// INTERNAL INCLUDES
+#include <dali/public-api/dali-adaptor-common.h>
+
 namespace Dali
 {
 /**
@@ -38,7 +41,7 @@ namespace Internal
 class OffscreenWindow;
 }
 
-class DALI_IMPORT_API OffscreenWindow : public Dali::BaseHandle
+class DALI_ADAPTOR_API OffscreenWindow : public Dali::BaseHandle
 {
 public:
   using WindowSize           = Uint16Pair;