[glibmm/export-more-symbols-2-64: 2/3] glib/src: Apply `decl_prefix GLIBMM_API` to _WRAP_ENUM



commit 62fd03ee179e7075ed47ec46d2581d6d9fd16a16
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Mar 30 19:09:41 2020 +0800

    glib/src: Apply `decl_prefix GLIBMM_API` to _WRAP_ENUM
    
    This way, we can ensure that the headers generated with gmmproc marks
    the template<> classes with GLIBMM_API, so that we can export them in
    Visual Studio builds.
    
    Note that for those _WRAP_ENUM calls marked with NO_GTYPE, there is no
    need to add 'decl_prefix ...'.

 glib/src/binding.hg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/src/binding.hg b/glib/src/binding.hg
index c8c7f35e..57b7c43c 100644
--- a/glib/src/binding.hg
+++ b/glib/src/binding.hg
@@ -24,7 +24,7 @@ _PINCLUDE(glibmm/private/object_p.h)
 
 namespace Glib
 {
-_WRAP_ENUM(BindingFlags, GBindingFlags, newin "2,44")
+_WRAP_ENUM(BindingFlags, GBindingFlags, newin "2,44", decl_prefix GLIBMM_API)
 
 /** Bind two object properties.
  *


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