Commit 2d83b635 authored by David Elliott's avatar David Elliott Committed by Alexandre Julliard

Fixed OFFSETOF macro definition for gcc 2.96.

parent 4c2c7af0
......@@ -310,8 +310,8 @@ int output_resources( FILE *outfile )
/* resource directory definition */
fprintf( outfile, "#define OFFSETOF(field) ((char*)&resources.field - (char*)&resources)\n" );
fprintf( outfile, "static struct {\n" );
fprintf( outfile, "#define OFFSETOF(field) ((char*)&((struct res_struct *)0)->field - (char*)((struct res_struct *) 0))\n" );
fprintf( outfile, "static struct res_struct{\n" );
fprintf( outfile, " struct res_dir type_dir;\n" );
fprintf( outfile, " struct res_dir_entry type_entries[%d];\n", nb_types );
......
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