Browse Source

changed define FPC_HAS_RESOURCES to FPC_HAS_WINLIKERESOURCES

git-svn-id: branches/resources@10472 -
giulio 17 years ago
parent
commit
0422cb9528

+ 3 - 3
compiler/options.pas

@@ -2021,11 +2021,11 @@ begin
     exclude(init_settings.moduleswitches,cs_create_pic);
     exclude(init_settings.moduleswitches,cs_create_pic);
     
     
   { Resources support }
   { Resources support }
-  if (tf_has_resources in target_info.flags) then
+  if (tf_has_winlike_resources in target_info.flags) then
     if def then
     if def then
-      def_system_macro('FPC_HAS_RESOURCES')
+      def_system_macro('FPC_HAS_WINLIKERESOURCES')
     else
     else
-      undef_system_macro('FPC_HAS_RESOURCES');
+      undef_system_macro('FPC_HAS_WINLIKERESOURCES');
 end;
 end;
 
 
 
 

+ 3 - 3
compiler/pmodules.pas

@@ -231,7 +231,7 @@ implementation
       hp           : tused_unit;
       hp           : tused_unit;
       found        : Boolean;
       found        : Boolean;
     begin
     begin
-      CheckResourcesUsed:=tf_has_resources in target_info.flags;
+      CheckResourcesUsed:=tf_has_winlike_resources in target_info.flags;
       if not CheckResourcesUsed then exit;
       if not CheckResourcesUsed then exit;
 
 
       hp:=tused_unit(usedunits.first);
       hp:=tused_unit(usedunits.first);
@@ -467,7 +467,7 @@ implementation
         { Note: on windows we always need resources! }
         { Note: on windows we always need resources! }
         resources_used:=(target_info.system in system_all_windows)
         resources_used:=(target_info.system in system_all_windows)
                          or CheckResourcesUsed;
                          or CheckResourcesUsed;
-        if (not resources_used) and (tf_has_resources in target_info.flags) then
+        if (not resources_used) and (tf_has_winlike_resources in target_info.flags) then
           begin
           begin
             { resources aren't used, so we don't need this unit }
             { resources aren't used, so we don't need this unit }
             if target_res.id=res_ext then
             if target_res.id=res_ext then
@@ -564,7 +564,7 @@ implementation
            { Which kind of resource support?
            { Which kind of resource support?
              Note: if resources aren't used this unit will be removed later,
              Note: if resources aren't used this unit will be removed later,
              otherwise we need it here since it must be loaded quite early }
              otherwise we need it here since it must be loaded quite early }
-           if (tf_has_resources in target_info.flags) then
+           if (tf_has_winlike_resources in target_info.flags) then
              if target_res.id=res_ext then
              if target_res.id=res_ext then
                AddUnit('fpextres')
                AddUnit('fpextres')
              else
              else

+ 1 - 1
compiler/systems.pas

@@ -319,7 +319,7 @@ interface
             tf_pic_default,
             tf_pic_default,
             { the os does some kind of stack checking and it can be converted into a rte 202 }
             { the os does some kind of stack checking and it can be converted into a rte 202 }
             tf_no_generic_stackcheck,
             tf_no_generic_stackcheck,
-            tf_has_resources
+            tf_has_winlike_resources
        );
        );
 
 
        psysteminfo = ^tsysteminfo;
        psysteminfo = ^tsysteminfo;

+ 10 - 10
compiler/systems/i_bsd.pas

@@ -60,7 +60,7 @@ unit i_bsd;
             {$ifdef segment_threadvars}
             {$ifdef segment_threadvars}
                                         tf_section_threadvars,
                                         tf_section_threadvars,
             {$endif segment_threadvars}
             {$endif segment_threadvars}
-                           tf_needs_symbol_type,tf_needs_symbol_size,tf_smartlink_library {,tf_smartlink_sections},tf_has_resources];
+                           tf_needs_symbol_type,tf_needs_symbol_size,tf_smartlink_library {,tf_smartlink_sections},tf_has_winlike_resources];
             cpu          : cpu_i386;
             cpu          : cpu_i386;
             unit_env     : 'BSDUNITS';
             unit_env     : 'BSDUNITS';
             extradefines : 'UNIX;BSD;HASUNIX';
             extradefines : 'UNIX;BSD;HASUNIX';
@@ -122,7 +122,7 @@ unit i_bsd;
             shortname    : 'FreeBSD';
             shortname    : 'FreeBSD';
             flags        : [tf_needs_symbol_size,tf_needs_dwarf_cfi,{Linux: tf_library_needs_pic,}tf_needs_symbol_type,
             flags        : [tf_needs_symbol_size,tf_needs_dwarf_cfi,{Linux: tf_library_needs_pic,}tf_needs_symbol_type,
                             tf_files_case_sensitive,tf_use_function_relative_addresses,tf_smartlink_library
                             tf_files_case_sensitive,tf_use_function_relative_addresses,tf_smartlink_library
-                                {	tf_pic_uses_got,tf_smartlink_sections},tf_has_resources];
+                                {	tf_pic_uses_got,tf_smartlink_sections},tf_has_winlike_resources];
             cpu          : cpu_x86_64;
             cpu          : cpu_x86_64;
             unit_env     : 'BSDUNITS';
             unit_env     : 'BSDUNITS';
             extradefines : 'UNIX;HASUNIX;BSD';
             extradefines : 'UNIX;HASUNIX;BSD';
@@ -182,7 +182,7 @@ unit i_bsd;
             system       : system_i386_NetBSD;
             system       : system_i386_NetBSD;
             name         : 'NetBSD for i386';
             name         : 'NetBSD for i386';
             shortname    : 'NetBSD';
             shortname    : 'NetBSD';
-            flags        : [tf_under_development,tf_files_case_sensitive,tf_smartlink_library,tf_use_function_relative_addresses,tf_has_resources];
+            flags        : [tf_under_development,tf_files_case_sensitive,tf_smartlink_library,tf_use_function_relative_addresses,tf_has_winlike_resources];
             cpu          : cpu_i386;
             cpu          : cpu_i386;
             unit_env     : 'BSDUNITS';
             unit_env     : 'BSDUNITS';
             extradefines : 'UNIX;BSD;HASUNIX';
             extradefines : 'UNIX;BSD;HASUNIX';
@@ -241,7 +241,7 @@ unit i_bsd;
             system       : system_i386_OpenBSD;
             system       : system_i386_OpenBSD;
             name         : 'OpenBSD for i386';
             name         : 'OpenBSD for i386';
             shortname    : 'OpenBSD';
             shortname    : 'OpenBSD';
-            flags        : [tf_under_development,tf_files_case_sensitive,tf_use_function_relative_addresses,tf_smartlink_library,tf_has_resources];
+            flags        : [tf_under_development,tf_files_case_sensitive,tf_use_function_relative_addresses,tf_smartlink_library,tf_has_winlike_resources];
             cpu          : cpu_i386;
             cpu          : cpu_i386;
             unit_env     : 'BSDUNITS';
             unit_env     : 'BSDUNITS';
             extradefines : 'UNIX;BSD;HASUNIX';
             extradefines : 'UNIX;BSD;HASUNIX';
@@ -300,7 +300,7 @@ unit i_bsd;
             system       : system_m68k_NetBSD;
             system       : system_m68k_NetBSD;
             name         : 'NetBSD for m68k';
             name         : 'NetBSD for m68k';
             shortname    : 'NetBSD';
             shortname    : 'NetBSD';
-            flags        : [tf_under_development,tf_files_case_sensitive,tf_use_function_relative_addresses,tf_smartlink_library,tf_has_resources];
+            flags        : [tf_under_development,tf_files_case_sensitive,tf_use_function_relative_addresses,tf_smartlink_library,tf_has_winlike_resources];
             cpu          : cpu_m68k;
             cpu          : cpu_m68k;
             unit_env     : 'BSDUNITS';
             unit_env     : 'BSDUNITS';
             extradefines : 'UNIX;BSD;HASUNIX';
             extradefines : 'UNIX;BSD;HASUNIX';
@@ -359,7 +359,7 @@ unit i_bsd;
             system       : system_powerpc_netbsd;
             system       : system_powerpc_netbsd;
             name         : 'NetBSD for PowerPC';
             name         : 'NetBSD for PowerPC';
             shortname    : 'NetBSD';
             shortname    : 'NetBSD';
-            flags        : [tf_under_development,tf_files_case_sensitive,tf_use_function_relative_addresses,tf_smartlink_library,tf_has_resources];
+            flags        : [tf_under_development,tf_files_case_sensitive,tf_use_function_relative_addresses,tf_smartlink_library,tf_has_winlike_resources];
             cpu          : cpu_powerpc;
             cpu          : cpu_powerpc;
             unit_env     : '';
             unit_env     : '';
             extradefines : 'UNIX;BSD;HASUNIX';
             extradefines : 'UNIX;BSD;HASUNIX';
@@ -420,7 +420,7 @@ unit i_bsd;
             system       : system_powerpc_darwin;
             system       : system_powerpc_darwin;
             name         : 'Darwin for PowerPC';
             name         : 'Darwin for PowerPC';
             shortname    : 'Darwin';
             shortname    : 'Darwin';
-            flags        : [tf_p_ext_support,tf_files_case_sensitive,tf_smartlink_sections,tf_dwarf_relative_addresses,tf_dwarf_only_local_labels,tf_pic_default,tf_has_resources];
+            flags        : [tf_p_ext_support,tf_files_case_sensitive,tf_smartlink_sections,tf_dwarf_relative_addresses,tf_dwarf_only_local_labels,tf_pic_default,tf_has_winlike_resources];
             cpu          : cpu_powerpc;
             cpu          : cpu_powerpc;
             unit_env     : 'BSDUNITS';
             unit_env     : 'BSDUNITS';
             extradefines : 'UNIX;BSD;HASUNIX';
             extradefines : 'UNIX;BSD;HASUNIX';
@@ -481,7 +481,7 @@ unit i_bsd;
             system       : system_i386_darwin;
             system       : system_i386_darwin;
             name         : 'Darwin for i386';
             name         : 'Darwin for i386';
             shortname    : 'Darwin';
             shortname    : 'Darwin';
-            flags        : [tf_p_ext_support,tf_files_case_sensitive,tf_smartlink_sections,tf_dwarf_relative_addresses,tf_dwarf_only_local_labels,tf_pic_uses_got,tf_pic_default,tf_has_resources];
+            flags        : [tf_p_ext_support,tf_files_case_sensitive,tf_smartlink_sections,tf_dwarf_relative_addresses,tf_dwarf_only_local_labels,tf_pic_uses_got,tf_pic_default,tf_has_winlike_resources];
             cpu          : cpu_i386;
             cpu          : cpu_i386;
             unit_env     : 'BSDUNITS';
             unit_env     : 'BSDUNITS';
             extradefines : 'UNIX;BSD;HASUNIX';
             extradefines : 'UNIX;BSD;HASUNIX';
@@ -542,7 +542,7 @@ unit i_bsd;
             system       : system_powerpc64_darwin;
             system       : system_powerpc64_darwin;
             name         : 'Darwin for PowerPC64';
             name         : 'Darwin for PowerPC64';
             shortname    : 'Darwin';
             shortname    : 'Darwin';
-            flags        : [tf_p_ext_support,tf_files_case_sensitive,tf_smartlink_sections,tf_dwarf_relative_addresses,tf_dwarf_only_local_labels,tf_pic_default,tf_has_resources];
+            flags        : [tf_p_ext_support,tf_files_case_sensitive,tf_smartlink_sections,tf_dwarf_relative_addresses,tf_dwarf_only_local_labels,tf_pic_default,tf_has_winlike_resources];
             cpu          : cpu_powerpc64;
             cpu          : cpu_powerpc64;
             unit_env     : 'BSDUNITS';
             unit_env     : 'BSDUNITS';
             extradefines : 'UNIX;BSD;HASUNIX';
             extradefines : 'UNIX;BSD;HASUNIX';
@@ -603,7 +603,7 @@ unit i_bsd;
             system       : system_x86_64_darwin;
             system       : system_x86_64_darwin;
             name         : 'Darwin for x86_64';
             name         : 'Darwin for x86_64';
             shortname    : 'Darwin';
             shortname    : 'Darwin';
-            flags        : [tf_p_ext_support,tf_files_case_sensitive,tf_smartlink_sections,tf_dwarf_relative_addresses,tf_dwarf_only_local_labels,tf_pic_default,tf_has_resources];
+            flags        : [tf_p_ext_support,tf_files_case_sensitive,tf_smartlink_sections,tf_dwarf_relative_addresses,tf_dwarf_only_local_labels,tf_pic_default,tf_has_winlike_resources];
             cpu          : cpu_x86_64;
             cpu          : cpu_x86_64;
             unit_env     : 'BSDUNITS';
             unit_env     : 'BSDUNITS';
             extradefines : 'UNIX;BSD;HASUNIX';
             extradefines : 'UNIX;BSD;HASUNIX';

+ 10 - 10
compiler/systems/i_linux.pas

@@ -37,7 +37,7 @@ unit i_linux;
                             tf_section_threadvars,
                             tf_section_threadvars,
 {$endif segment_threadvars}
 {$endif segment_threadvars}
                             tf_needs_symbol_type,tf_files_case_sensitive,tf_use_function_relative_addresses,
                             tf_needs_symbol_type,tf_files_case_sensitive,tf_use_function_relative_addresses,
-                            tf_smartlink_library,tf_needs_dwarf_cfi,tf_has_resources];
+                            tf_smartlink_library,tf_needs_dwarf_cfi,tf_has_winlike_resources];
             cpu          : cpu_i386;
             cpu          : cpu_i386;
             unit_env     : 'LINUXUNITS';
             unit_env     : 'LINUXUNITS';
             extradefines : 'UNIX;HASUNIX';
             extradefines : 'UNIX;HASUNIX';
@@ -96,7 +96,7 @@ unit i_linux;
             system       : system_x86_6432_LINUX;
             system       : system_x86_6432_LINUX;
             name         : 'Linux for x64_6432';
             name         : 'Linux for x64_6432';
             shortname    : 'Linux6432';
             shortname    : 'Linux6432';
-            flags        : [tf_needs_symbol_size,tf_needs_symbol_type,tf_files_case_sensitive,tf_use_function_relative_addresses,tf_pic_uses_got{,tf_smartlink_sections},tf_smartlink_library,tf_has_resources];
+            flags        : [tf_needs_symbol_size,tf_needs_symbol_type,tf_files_case_sensitive,tf_use_function_relative_addresses,tf_pic_uses_got{,tf_smartlink_sections},tf_smartlink_library,tf_has_winlike_resources];
             cpu          : cpu_x86_64;
             cpu          : cpu_x86_64;
             unit_env     : 'LINUXUNITS';
             unit_env     : 'LINUXUNITS';
             extradefines : 'UNIX;HASUNIX';
             extradefines : 'UNIX;HASUNIX';
@@ -156,7 +156,7 @@ unit i_linux;
             name         : 'Linux for m68k';
             name         : 'Linux for m68k';
             shortname    : 'Linux';
             shortname    : 'Linux';
             flags        : [tf_needs_symbol_size,tf_needs_symbol_type,tf_files_case_sensitive,tf_use_function_relative_addresses,
             flags        : [tf_needs_symbol_size,tf_needs_symbol_type,tf_files_case_sensitive,tf_use_function_relative_addresses,
-                            tf_smartlink_library,tf_has_resources];
+                            tf_smartlink_library,tf_has_winlike_resources];
             cpu          : cpu_m68k;
             cpu          : cpu_m68k;
             unit_env     : 'LINUXUNITS';
             unit_env     : 'LINUXUNITS';
             extradefines : 'UNIX;HASUNIX';
             extradefines : 'UNIX;HASUNIX';
@@ -216,7 +216,7 @@ unit i_linux;
             name         : 'Linux for PowerPC';
             name         : 'Linux for PowerPC';
             shortname    : 'Linux';
             shortname    : 'Linux';
             flags        : [tf_needs_symbol_size,tf_needs_symbol_type,tf_files_case_sensitive,tf_use_function_relative_addresses,
             flags        : [tf_needs_symbol_size,tf_needs_symbol_type,tf_files_case_sensitive,tf_use_function_relative_addresses,
-                            tf_smartlink_library,tf_has_resources];
+                            tf_smartlink_library,tf_has_winlike_resources];
             cpu          : cpu_powerpc;
             cpu          : cpu_powerpc;
             unit_env     : '';
             unit_env     : '';
             extradefines : 'UNIX;HASUNIX';
             extradefines : 'UNIX;HASUNIX';
@@ -276,7 +276,7 @@ unit i_linux;
             name         : 'Linux for PowerPC64';
             name         : 'Linux for PowerPC64';
             shortname    : 'Linux';
             shortname    : 'Linux';
             flags        : [tf_needs_symbol_size,tf_needs_symbol_type,tf_files_case_sensitive,tf_use_function_relative_addresses,
             flags        : [tf_needs_symbol_size,tf_needs_symbol_type,tf_files_case_sensitive,tf_use_function_relative_addresses,
-                            tf_requires_proper_alignment,tf_smartlink_library,tf_has_resources];
+                            tf_requires_proper_alignment,tf_smartlink_library,tf_has_winlike_resources];
             cpu          : cpu_powerpc64;
             cpu          : cpu_powerpc64;
             unit_env     : '';
             unit_env     : '';
             extradefines : 'UNIX;HASUNIX';
             extradefines : 'UNIX;HASUNIX';
@@ -336,7 +336,7 @@ unit i_linux;
             name         : 'Linux for Alpha';
             name         : 'Linux for Alpha';
             shortname    : 'Linux';
             shortname    : 'Linux';
             flags        : [tf_needs_symbol_size,tf_needs_symbol_type,tf_files_case_sensitive,
             flags        : [tf_needs_symbol_size,tf_needs_symbol_type,tf_files_case_sensitive,
-                            tf_use_function_relative_addresses,tf_smartlink_library,tf_has_resources];
+                            tf_use_function_relative_addresses,tf_smartlink_library,tf_has_winlike_resources];
             cpu          : cpu_alpha;
             cpu          : cpu_alpha;
             unit_env     : 'LINUXUNITS';
             unit_env     : 'LINUXUNITS';
             extradefines : 'UNIX;HASUNIX';
             extradefines : 'UNIX;HASUNIX';
@@ -396,7 +396,7 @@ unit i_linux;
             name         : 'Linux for x86-64';
             name         : 'Linux for x86-64';
             shortname    : 'Linux';
             shortname    : 'Linux';
             flags        : [tf_needs_symbol_size,tf_needs_dwarf_cfi,tf_smartlink_library,
             flags        : [tf_needs_symbol_size,tf_needs_dwarf_cfi,tf_smartlink_library,
-                            tf_library_needs_pic,tf_needs_symbol_type,tf_files_case_sensitive,tf_use_function_relative_addresses,tf_has_resources];
+                            tf_library_needs_pic,tf_needs_symbol_type,tf_files_case_sensitive,tf_use_function_relative_addresses,tf_has_winlike_resources];
             cpu          : cpu_x86_64;
             cpu          : cpu_x86_64;
             unit_env     : 'LINUXUNITS';
             unit_env     : 'LINUXUNITS';
             extradefines : 'UNIX;HASUNIX';
             extradefines : 'UNIX;HASUNIX';
@@ -456,7 +456,7 @@ unit i_linux;
             name         : 'Linux for SPARC';
             name         : 'Linux for SPARC';
             shortname    : 'Linux';
             shortname    : 'Linux';
             flags        : [tf_needs_symbol_size,tf_library_needs_pic,tf_needs_symbol_type,tf_files_case_sensitive,tf_smartlink_library,
             flags        : [tf_needs_symbol_size,tf_library_needs_pic,tf_needs_symbol_type,tf_files_case_sensitive,tf_smartlink_library,
-                            tf_use_function_relative_addresses,tf_requires_proper_alignment,tf_has_resources];
+                            tf_use_function_relative_addresses,tf_requires_proper_alignment,tf_has_winlike_resources];
             cpu          : cpu_SPARC;
             cpu          : cpu_SPARC;
             unit_env     : 'LINUXUNITS';
             unit_env     : 'LINUXUNITS';
             extradefines : 'UNIX;HASUNIX';
             extradefines : 'UNIX;HASUNIX';
@@ -517,7 +517,7 @@ unit i_linux;
             name         : 'Linux for ARMEL';
             name         : 'Linux for ARMEL';
             shortname    : 'Linux';
             shortname    : 'Linux';
             flags        : [tf_needs_symbol_size,tf_needs_symbol_type,tf_files_case_sensitive,
             flags        : [tf_needs_symbol_size,tf_needs_symbol_type,tf_files_case_sensitive,
-                            tf_use_function_relative_addresses,tf_requires_proper_alignment,tf_smartlink_sections,tf_smartlink_library,tf_has_resources];
+                            tf_use_function_relative_addresses,tf_requires_proper_alignment,tf_smartlink_sections,tf_smartlink_library,tf_has_winlike_resources];
             cpu          : cpu_arm;
             cpu          : cpu_arm;
             unit_env     : 'LINUXUNITS';
             unit_env     : 'LINUXUNITS';
             extradefines : 'UNIX;HASUNIX';
             extradefines : 'UNIX;HASUNIX';
@@ -577,7 +577,7 @@ unit i_linux;
             name         : 'Linux for ARM';
             name         : 'Linux for ARM';
             shortname    : 'Linux';
             shortname    : 'Linux';
             flags        : [tf_needs_symbol_size,tf_needs_symbol_type,tf_files_case_sensitive,
             flags        : [tf_needs_symbol_size,tf_needs_symbol_type,tf_files_case_sensitive,
-                            tf_use_function_relative_addresses,tf_requires_proper_alignment,tf_smartlink_sections,tf_smartlink_library,tf_has_resources];
+                            tf_use_function_relative_addresses,tf_requires_proper_alignment,tf_smartlink_sections,tf_smartlink_library,tf_has_winlike_resources];
             cpu          : cpu_arm;
             cpu          : cpu_arm;
             unit_env     : 'LINUXUNITS';
             unit_env     : 'LINUXUNITS';
             extradefines : 'UNIX;HASUNIX';
             extradefines : 'UNIX;HASUNIX';

+ 2 - 2
compiler/systems/i_sunos.pas

@@ -32,7 +32,7 @@ unit i_sunos;
             system       : system_i386_solaris;
             system       : system_i386_solaris;
             name         : 'Solaris for i386';
             name         : 'Solaris for i386';
             shortname    : 'solaris';
             shortname    : 'solaris';
-            flags        : [tf_under_development,tf_files_case_sensitive,tf_use_function_relative_addresses,tf_smartlink_library,tf_has_resources];
+            flags        : [tf_under_development,tf_files_case_sensitive,tf_use_function_relative_addresses,tf_smartlink_library,tf_has_winlike_resources];
             cpu          : cpu_i386;
             cpu          : cpu_i386;
             unit_env     : 'SOLARISUNITS';
             unit_env     : 'SOLARISUNITS';
             extradefines : 'UNIX;LIBC;SUNOS;HASUNIX';
             extradefines : 'UNIX;LIBC;SUNOS;HASUNIX';
@@ -92,7 +92,7 @@ unit i_sunos;
             name         : 'Solaris for SPARC';
             name         : 'Solaris for SPARC';
             shortname    : 'solaris';
             shortname    : 'solaris';
             flags        : [tf_needs_symbol_size,tf_under_development,tf_files_case_sensitive,tf_use_function_relative_addresses,
             flags        : [tf_needs_symbol_size,tf_under_development,tf_files_case_sensitive,tf_use_function_relative_addresses,
-                            tf_requires_proper_alignment,tf_smartlink_library,tf_has_resources];
+                            tf_requires_proper_alignment,tf_smartlink_library,tf_has_winlike_resources];
             cpu          : cpu_SPARC;
             cpu          : cpu_SPARC;
             unit_env     : 'SOLARISUNITS';
             unit_env     : 'SOLARISUNITS';
             extradefines : 'UNIX;LIBC;SUNOS;HASUNIX';
             extradefines : 'UNIX;LIBC;SUNOS;HASUNIX';

+ 4 - 4
compiler/systems/i_win.pas

@@ -35,7 +35,7 @@ unit i_win;
             flags        : [tf_files_case_aware,tf_has_dllscanner,tf_use_function_relative_addresses,tf_smartlink_library
             flags        : [tf_files_case_aware,tf_has_dllscanner,tf_use_function_relative_addresses,tf_smartlink_library
                             ,tf_smartlink_sections{,tf_section_threadvars}{,tf_needs_dwarf_cfi},
                             ,tf_smartlink_sections{,tf_section_threadvars}{,tf_needs_dwarf_cfi},
                             tf_winlikewidestring,tf_no_pic_supported,
                             tf_winlikewidestring,tf_no_pic_supported,
-                            tf_no_generic_stackcheck,tf_has_resources];
+                            tf_no_generic_stackcheck,tf_has_winlike_resources];
             cpu          : cpu_i386;
             cpu          : cpu_i386;
             unit_env     : 'WIN32UNITS';
             unit_env     : 'WIN32UNITS';
             extradefines : 'MSWINDOWS;WINDOWS';
             extradefines : 'MSWINDOWS;WINDOWS';
@@ -96,7 +96,7 @@ unit i_win;
             shortname    : 'Win64';
             shortname    : 'Win64';
             flags        : [tf_files_case_aware,tf_has_dllscanner,tf_use_function_relative_addresses,
             flags        : [tf_files_case_aware,tf_has_dllscanner,tf_use_function_relative_addresses,
                             tf_smartlink_sections,tf_smartlink_library,tf_winlikewidestring,tf_no_pic_supported,
                             tf_smartlink_sections,tf_smartlink_library,tf_winlikewidestring,tf_no_pic_supported,
-                            tf_no_generic_stackcheck,tf_has_resources];
+                            tf_no_generic_stackcheck,tf_has_winlike_resources];
             cpu          : cpu_x86_64;
             cpu          : cpu_x86_64;
             unit_env     : 'WIN64UNITS';
             unit_env     : 'WIN64UNITS';
             extradefines : 'MSWINDOWS;WINDOWS';
             extradefines : 'MSWINDOWS;WINDOWS';
@@ -157,7 +157,7 @@ unit i_win;
             shortname    : 'WinCE';
             shortname    : 'WinCE';
             flags        : [tf_files_case_aware,tf_use_function_relative_addresses{,tf_winlikewidestring},
             flags        : [tf_files_case_aware,tf_use_function_relative_addresses{,tf_winlikewidestring},
                             tf_smartlink_sections,tf_requires_proper_alignment,tf_no_pic_supported,
                             tf_smartlink_sections,tf_requires_proper_alignment,tf_no_pic_supported,
-                            tf_has_resources];
+                            tf_has_winlike_resources];
             cpu          : cpu_arm;
             cpu          : cpu_arm;
             unit_env     : '';
             unit_env     : '';
             extradefines : 'UNDER_CE;WINDOWS;UNICODE';
             extradefines : 'UNDER_CE;WINDOWS;UNICODE';
@@ -218,7 +218,7 @@ unit i_win;
             shortname    : 'WinCE';
             shortname    : 'WinCE';
             flags        : [tf_files_case_aware,tf_use_function_relative_addresses
             flags        : [tf_files_case_aware,tf_use_function_relative_addresses
                             {,tf_winlikewidestring},tf_smartlink_sections,tf_no_pic_supported,
                             {,tf_winlikewidestring},tf_smartlink_sections,tf_no_pic_supported,
-                            tf_has_resources];
+                            tf_has_winlike_resources];
             cpu          : cpu_i386;
             cpu          : cpu_i386;
             unit_env     : '';
             unit_env     : '';
             extradefines : 'UNDER_CE;WINDOWS;UNICODE';
             extradefines : 'UNDER_CE;WINDOWS;UNICODE';

+ 1 - 1
rtl/inc/fpintres.pp

@@ -19,7 +19,7 @@ interface
 
 
 implementation
 implementation
 
 
-{$ifdef FPC_HAS_RESOURCES}
+{$ifdef FPC_HAS_WINLIKERESOURCES}
   {$ifdef WINDOWS}
   {$ifdef WINDOWS}
     {$include winres.inc}
     {$include winres.inc}
   {$else}
   {$else}

+ 1 - 14
rtl/inc/intres.inc

@@ -29,21 +29,8 @@ type
   end;
   end;
   PResHdr = ^TResHdr;
   PResHdr = ^TResHdr;
 
 
-
-//Needed to bootstrap the compiler: FPC_HAS_RESOURCES was buggy in previous
-//versions of the compiler
-{$ifdef VER2_0}
-  {$undef FPC_HAS_RESOURCES}
-{$endif}
-{$ifdef VER2_1}
-  {$undef FPC_HAS_RESOURCES}
-{$endif}
-{$ifdef VER2_2_0}
-  {$undef FPC_HAS_RESOURCES}
-{$endif}
-
 var
 var
-{$ifdef FPC_HAS_RESOURCES}
+{$ifdef FPC_HAS_WINLIKERESOURCES}
   ResHeader : PResHdr; external name 'FPC_RESLOCATION';
   ResHeader : PResHdr; external name 'FPC_RESLOCATION';
 {$else}
 {$else}
   ResHeader : PResHdr= nil;
   ResHeader : PResHdr= nil;