Winebuild darwin/x86-specific fixes:
- Assembler interprets .align as power-of-two - Add .weak_reference to output where gcc 3.3 swallows it
This commit is contained in:
parent
86f575cdc1
commit
84c8bf5340
|
@ -83,6 +83,7 @@ static void declare_weak_function( FILE *outfile, const char *ret_type, const ch
|
|||
fprintf( outfile, "extern %s %s(%s) __attribute__((weak_import));\n", ret_type, name, params );
|
||||
fprintf( outfile, "static %s (*__wine_spec_weak_%s)(%s) = %s;\n", ret_type, name, params, name );
|
||||
fprintf( outfile, "#define %s __wine_spec_weak_%s\n", name, name );
|
||||
fprintf( outfile, "asm(\".weak_reference " __ASM_NAME("%s") "\");\n", name );
|
||||
fprintf( outfile, "# else\n" );
|
||||
fprintf( outfile, "extern %s %s(%s) __attribute__((weak));\n", ret_type, name, params );
|
||||
fprintf( outfile, "# endif\n" );
|
||||
|
|
|
@ -349,7 +349,7 @@ const char *make_c_identifier( const char *str )
|
|||
*/
|
||||
int get_alignment(int alignBoundary)
|
||||
{
|
||||
#if defined(__powerpc__) || defined(__ALPHA__)
|
||||
#if defined(__powerpc__) || defined(__ALPHA__) || defined(__APPLE__)
|
||||
|
||||
int n = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue