This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
move version details to version::Internals and other clean up
[perl5.git] / embed.pl
index 50da232..9c55cb4 100755 (executable)
--- a/embed.pl
+++ b/embed.pl
@@ -253,6 +253,9 @@ sub write_protos {
        if ( $flags =~ /r/ ) {
            push @attrs, "__attribute__noreturn__";
        }
+       if ( $flags =~ /D/ ) {
+           push @attrs, "__attribute__deprecated__";
+       }
        if ( $is_malloc ) {
            push @attrs, "__attribute__malloc__";
        }