Fixed OFFSETOF macro definition for gcc 2.96.

This commit is contained in:
David Elliott 2000-10-24 01:42:17 +00:00 committed by Alexandre Julliard
parent 4c2c7af0cc
commit 2d83b63594
1 changed files with 2 additions and 2 deletions

View File

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