5 if (($#ARGV >= 0) && ($ARGV[0] eq "-def")) {
11 /* Generated by makegtkalias.pl */
13 #ifndef DISABLE_VISIBILITY
17 #ifdef G_HAVE_GNUC_VISIBILITY
24 #define IN_FILE defined
27 #define IN_HEADER(x) 1
34 #define IN_HEADER defined
40 my $in_skipped_section = 0;
66 if (!$in_skipped_section)
71 $in_skipped_section = 0;
76 if ($_ =~ /^\#ifdef\s+(INCLUDE_VARIABLES|ALL_FILES)/)
78 $in_skipped_section = 1;
81 if ($in_skipped_section)
86 if ($_ =~ /^\#ifn?def\s+G/)
93 if ($_ =~ /^\#ifndef\s+_WIN64/)
100 if ($_ =~ /^\#if.*(IN_FILE|IN_HEADER)/)
112 @words = split(/ /, $str);
113 $str = shift(@words);
115 my $alias = "IA__".$str;
117 # Drop any Win32 specific .def file syntax, but keep attributes
118 foreach $word (@words) {
119 $attributes = "$attributes $word" unless $word eq "PRIVATE";
124 extern __typeof ($str) $alias __attribute((visibility("hidden")))$attributes;
132 extern __typeof ($str) $str __attribute((alias("$alias"), visibility("default")));
139 #endif /* G_HAVE_GNUC_VISIBILITY */
140 #endif /* DISABLE_VISIBILITY */