7 if (($#ARGV >= 0) && ($ARGV[0] eq "-def")) {
13 /* Generated by makegioalias.pl */
15 #ifndef DISABLE_VISIBILITY
19 #ifdef G_HAVE_GNUC_VISIBILITY
26 #define IN_FILE defined
29 #define IN_HEADER(x) 1
36 #define IN_HEADER defined
42 my $in_skipped_section = 0;
68 if (!$in_skipped_section)
73 $in_skipped_section = 0;
78 if ($_ =~ /^\#ifdef\s+(INCLUDE_VARIABLES|INCLUDE_INTERNAL_SYMBOLS|ALL_FILES)/)
80 $in_skipped_section = 1;
83 if ($in_skipped_section)
88 if ($_ =~ /^\#ifn?def\s+G/)
95 if ($_ =~ /^\#if.*(IN_FILE|IN_HEADER)/)
107 @words = split(/ /, $str);
108 $str = shift(@words);
110 my $alias = "IA__".$str;
112 # Drop any Win32 specific .def file syntax, but keep attributes
113 foreach $word (@words) {
114 $attributes = "$attributes $word" unless $word eq "PRIVATE";
119 extern __typeof ($str) $alias __attribute((visibility("hidden")))$attributes;
127 extern __typeof ($str) $str __attribute((alias("$alias"), visibility("default")));
135 #endif /* G_HAVE_GNUC_VISIBILITY */
136 #endif /* DISABLE_VISIBILITY */