Ticket #13006: glib2-inline.2.patch

File glib2-inline.2.patch, 1.1 KB (added by afb@…, 17 years ago)

glib2-inline.patch

  • files/patch-glib_gutils.h.diff

     
    44 #ifdef G_IMPLEMENT_INLINES
    55 #  define G_INLINE_FUNC
    66 #  undef  G_CAN_INLINE
    7 +#elif defined (__APPLE__) && !defined(GLIB_COMPILATION) && !defined(GOBJECT_COMPILATION)
    8 +#  define G_INLINE_FUNC inline
     7+#elif defined (__APPLE__)
     8+#  define G_INLINE_FUNC static inline
    99 #elif defined (__GNUC__)
    1010 #  define G_INLINE_FUNC extern inline
    1111 #elif defined (G_CAN_INLINE)
  • Portfile

     
    55name                glib2
    66set my_name         glib
    77version             2.14.2
    8 revision            1
     8revision            2
    99set branch          [join [lrange [split ${version} .] 0 1] .]
    1010categories          devel
    1111maintainers         ryandesign
     
    7777
    7878platform darwin 9 {
    7979        patchfiles-append patch-glib_gutils.h.diff
    80         configure.cflags-append -finline-functions
    8180}
    8281
    8382livecheck.check     regex