Ticket #43150: perl5.16-dNOOP.diff

File perl5.16-dNOOP.diff, 1.3 KB (added by mojca (Mojca Miklavec), 11 years ago)

backported fix for dNOOP in C++ for Perl 5.16

  • Portfile

     
    55
    66name                perl5.16
    77version             5.16.1
    8 revision            3
     8revision            4
    99set branch          [join [lrange [split ${version} .] 0 1] .]
    1010categories          lang
    1111license             {Artistic-1 GPL}
     
    2929depends_lib-append  port:gdbm
    3030
    3131patchfiles          patch-Configure.diff \
    32                     patch-handy.h.stdbool.diff
     32                    patch-handy.h.stdbool.diff \
     33                    patch-perl.h.diff
    3334
    3435platform darwin {
    3536    patchfiles-append   patch-hints_darwin.sh.diff
  • files/patch-perl.h.diff

     
     1--- perl.h.orig
     2+++ perl.h
     3@@ -359,7 +359,11 @@
     4 /* Rats: if dTHR is just blank then the subsequent ";" throws an error */
     5 /* Declaring a *function*, instead of a variable, ensures that we don't rely
     6    on being able to suppress "unused" warnings.  */
     7+#ifdef __cplusplus
     8+#define dNOOP (void)0
     9+#else
     10 #define dNOOP extern int Perl___notused(void)
     11+#endif
     12 
     13 #ifndef pTHX
     14 /* Don't bother defining tTHX and sTHX; using them outside