Protect gtkalias.h by G_HAVE_GNUC_VISIBILITY.
2004-08-10 Matthias Clasen <mclasen@redhat.com> * gdk/makegdkalias.pl: * gtk/makegtkalias.pl: Protect gtkalias.h by G_HAVE_GNUC_VISIBILITY.
This commit is contained in:
committed by
Matthias Clasen
parent
9c0208b253
commit
efab9fbe8e
@ -1,5 +1,8 @@
|
|||||||
2004-08-10 Matthias Clasen <mclasen@redhat.com>
|
2004-08-10 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gdk/makegdkalias.pl:
|
||||||
|
* gtk/makegtkalias.pl: Protect gtkalias.h by G_HAVE_GNUC_VISIBILITY.
|
||||||
|
|
||||||
* gtk/Makefile.am: Include gtkalias.h in the generated
|
* gtk/Makefile.am: Include gtkalias.h in the generated
|
||||||
sources gtkmarhalers.c and gtkmarshal.c.
|
sources gtkmarhalers.c and gtkmarshal.c.
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
2004-08-10 Matthias Clasen <mclasen@redhat.com>
|
2004-08-10 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gdk/makegdkalias.pl:
|
||||||
|
* gtk/makegtkalias.pl: Protect gtkalias.h by G_HAVE_GNUC_VISIBILITY.
|
||||||
|
|
||||||
* gtk/Makefile.am: Include gtkalias.h in the generated
|
* gtk/Makefile.am: Include gtkalias.h in the generated
|
||||||
sources gtkmarhalers.c and gtkmarshal.c.
|
sources gtkmarhalers.c and gtkmarshal.c.
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
2004-08-10 Matthias Clasen <mclasen@redhat.com>
|
2004-08-10 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gdk/makegdkalias.pl:
|
||||||
|
* gtk/makegtkalias.pl: Protect gtkalias.h by G_HAVE_GNUC_VISIBILITY.
|
||||||
|
|
||||||
* gtk/Makefile.am: Include gtkalias.h in the generated
|
* gtk/Makefile.am: Include gtkalias.h in the generated
|
||||||
sources gtkmarhalers.c and gtkmarshal.c.
|
sources gtkmarhalers.c and gtkmarshal.c.
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
2004-08-10 Matthias Clasen <mclasen@redhat.com>
|
2004-08-10 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gdk/makegdkalias.pl:
|
||||||
|
* gtk/makegtkalias.pl: Protect gtkalias.h by G_HAVE_GNUC_VISIBILITY.
|
||||||
|
|
||||||
* gtk/Makefile.am: Include gtkalias.h in the generated
|
* gtk/Makefile.am: Include gtkalias.h in the generated
|
||||||
sources gtkmarhalers.c and gtkmarshal.c.
|
sources gtkmarhalers.c and gtkmarshal.c.
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
#!/usr/bin/perl -w
|
#!/usr/bin/perl -w
|
||||||
|
|
||||||
my $preamble = <<EOF;
|
print <<EOF;
|
||||||
/* Generated by makegdkalias.pl */
|
/* Generated by makegdkalias.pl */
|
||||||
|
|
||||||
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
|
#ifdef G_HAVE_GNUC_VISIBILITY
|
||||||
|
|
||||||
#ifdef GDK_ENABLE_BROKEN
|
#ifdef GDK_ENABLE_BROKEN
|
||||||
#define WAS_BROKEN
|
#define WAS_BROKEN
|
||||||
@ -31,7 +31,22 @@ my $preamble = <<EOF;
|
|||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
my $postamble = <<EOF;
|
while (<>) {
|
||||||
|
|
||||||
|
# ignore empty lines
|
||||||
|
next if /^\s*$/;
|
||||||
|
|
||||||
|
my $str = $_;
|
||||||
|
chomp($str);
|
||||||
|
my $alias = $str."__internal_alias";
|
||||||
|
|
||||||
|
print "extern __typeof ($str) $alias __attribute((visibility(\"hidden\"))); \n";
|
||||||
|
print "extern __typeof ($str) $str __attribute((alias(\"$alias\"), visibility(\"default\"))); \n";
|
||||||
|
print "#define $str $alias \n";
|
||||||
|
print "\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
print <<EOF;
|
||||||
|
|
||||||
#ifndef WAS_BROKEN
|
#ifndef WAS_BROKEN
|
||||||
#undef GDK_ENABLE_BROKEN
|
#undef GDK_ENABLE_BROKEN
|
||||||
@ -54,24 +69,6 @@ my $postamble = <<EOF;
|
|||||||
#undef WAS_NO_G_DEPR
|
#undef WAS_NO_G_DEPR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) */
|
#endif /* G_HAVE_GNUC_VISIBILITY */
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
print $preamble;
|
|
||||||
while (<>) {
|
|
||||||
|
|
||||||
# ignore empty lines
|
|
||||||
next if /^\s*$/;
|
|
||||||
|
|
||||||
my $str = $_;
|
|
||||||
chomp($str);
|
|
||||||
my $alias = $str."__internal_alias";
|
|
||||||
|
|
||||||
print "extern __typeof ($str) $alias __attribute((visibility(\"hidden\"))); \n";
|
|
||||||
print "extern __typeof ($str) $str __attribute((alias(\"$alias\"), visibility(\"default\"))); \n";
|
|
||||||
print "#define $str $alias \n";
|
|
||||||
print "\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
print $postamble;
|
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
#!/usr/bin/perl -w
|
#!/usr/bin/perl -w
|
||||||
|
|
||||||
my $preamble = <<EOF;
|
print <<EOF;
|
||||||
/* Generated by makegtkalias.pl */
|
/* Generated by makegtkalias.pl */
|
||||||
|
|
||||||
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
|
#ifdef G_HAVE_GNUC_VISIBILITY
|
||||||
|
|
||||||
#ifdef GTK_ENABLE_BROKEN
|
#ifdef GTK_ENABLE_BROKEN
|
||||||
#define WAS_BROKEN
|
#define WAS_BROKEN
|
||||||
@ -42,7 +42,22 @@ my $preamble = <<EOF;
|
|||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
my $postamble = <<EOF;
|
while (<>) {
|
||||||
|
|
||||||
|
# ignore empty lines
|
||||||
|
next if /^\s*$/;
|
||||||
|
|
||||||
|
my $str = $_;
|
||||||
|
chomp($str);
|
||||||
|
my $alias = $str."__internal_alias";
|
||||||
|
|
||||||
|
print "extern __typeof ($str) $alias __attribute((visibility(\"hidden\"))); \n";
|
||||||
|
print "extern __typeof ($str) $str __attribute((alias(\"$alias\"), visibility(\"default\"))); \n";
|
||||||
|
print "#define $str $alias \n";
|
||||||
|
print "\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
print <<EOF;
|
||||||
|
|
||||||
#ifndef WAS_BROKEN
|
#ifndef WAS_BROKEN
|
||||||
#undef GTK_ENABLE_BROKEN
|
#undef GTK_ENABLE_BROKEN
|
||||||
@ -66,24 +81,7 @@ my $postamble = <<EOF;
|
|||||||
#undef WAS_NO_G_DEPR
|
#undef WAS_NO_G_DEPR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) */
|
#endif /* G_HAVE_GNUC_VISIBILITY */
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
print $preamble;
|
|
||||||
while (<>) {
|
|
||||||
|
|
||||||
# ignore empty lines
|
|
||||||
next if /^\s*$/;
|
|
||||||
|
|
||||||
my $str = $_;
|
|
||||||
chomp($str);
|
|
||||||
my $alias = $str."__internal_alias";
|
|
||||||
|
|
||||||
print "extern __typeof ($str) $alias __attribute((visibility(\"hidden\"))); \n";
|
|
||||||
print "extern __typeof ($str) $str __attribute((alias(\"$alias\"), visibility(\"default\"))); \n";
|
|
||||||
print "#define $str $alias \n";
|
|
||||||
print "\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
print $postamble;
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user