if -E, add windows standard calling conv to headerfile if needed
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13712 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		@@ -10,7 +10,7 @@ $debug = 0;
 | 
				
			|||||||
$oproto = 1;
 | 
					$oproto = 1;
 | 
				
			||||||
$private_func_re = "^_";
 | 
					$private_func_re = "^_";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
do Getopts('x:m:o:p:dqR:P:') || die "foo";
 | 
					do Getopts('x:m:o:p:dqE:R:P:') || die "foo";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if($opt_d) {
 | 
					if($opt_d) {
 | 
				
			||||||
    $debug = 1;
 | 
					    $debug = 1;
 | 
				
			||||||
@@ -256,6 +256,27 @@ if($opt_m ne "roken") {
 | 
				
			|||||||
";
 | 
					";
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    if ($opt_E) {
 | 
				
			||||||
 | 
						$public_h_header .= "#ifndef $opt_E
 | 
				
			||||||
 | 
					#if defined(_WIN32)
 | 
				
			||||||
 | 
					#define $opt_E _stdcall
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
 | 
					#define $opt_E
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						$private_h_header .= "#ifndef $opt_E
 | 
				
			||||||
 | 
					#if defined(_WIN32)
 | 
				
			||||||
 | 
					#define $opt_E _stdcall
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
 | 
					#define $opt_E
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					";
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    if ($public_h ne "") {
 | 
					    if ($public_h ne "") {
 | 
				
			||||||
	$public_h = $public_h_header . $public_h . "#endif /* $block */\n";
 | 
						$public_h = $public_h_header . $public_h . "#endif /* $block */\n";
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user