Commit 84c8bf53 authored by Wolfgang Thaller's avatar Wolfgang Thaller Committed by Alexandre Julliard

Winebuild darwin/x86-specific fixes:

- Assembler interprets .align as power-of-two - Add .weak_reference to output where gcc 3.3 swallows it
parent 86f575cd
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment