[atkmm/use-dllexport: 3/5] atk/atkmm/*.h: Mark methods with ATKMM_API



commit aaecf345018cd10ad1189b3b7f4310c257406e72
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Apr 1 17:56:27 2020 +0800

    atk/atkmm/*.h: Mark methods with ATKMM_API
    
    This way, we can export symbols in atkmm using compiler directives
    rather than using gendef.exe.

 atk/atkmm/init.h      | 4 +++-
 atk/atkmm/wrap_init.h | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/atk/atkmm/init.h b/atk/atkmm/init.h
index a54b875..549ba65 100644
--- a/atk/atkmm/init.h
+++ b/atk/atkmm/init.h
@@ -21,6 +21,8 @@
  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#include <atkmmconfig.h>
+
 namespace Atk
 {
 
@@ -29,7 +31,7 @@ namespace Atk
  * You do not need to call this if you are using Gtk::Main,
  * because it calls this for you.
  */
-void init();
+ATKMM_API void init();
 
 } // namespace Atk
 
diff --git a/atk/atkmm/wrap_init.h b/atk/atkmm/wrap_init.h
index 64f5b6c..6630a25 100644
--- a/atk/atkmm/wrap_init.h
+++ b/atk/atkmm/wrap_init.h
@@ -22,10 +22,12 @@
 
 // wrap_init.cc is generated by tools/generate_wrap_init.pl
 
+#include <atkmmconfig.h>
+
 namespace Atk
 {
 
-void wrap_init();
+ATKMM_API void wrap_init();
 
 } /* namespace Atk */
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]