Explorar el Código

* resource functions for win64, fixes #8304

git-svn-id: trunk@6540 -
florian hace 18 años
padre
commit
c6f8f550f9
Se han modificado 5 ficheros con 13 adiciones y 6 borrados
  1. 2 1
      .gitattributes
  2. 0 0
      rtl/win/winres.inc
  3. 2 2
      rtl/win32/system.pp
  4. 1 3
      rtl/win64/system.pp
  5. 8 0
      tests/webtbs/tw8304.pp

+ 2 - 1
.gitattributes

@@ -5359,6 +5359,7 @@ rtl/win/wininc/struct.inc svneol=native#text/plain
 rtl/win/wininc/unidef.inc svneol=native#text/plain
 rtl/win/wininc/unidef.sed -text
 rtl/win/wininc/unifun.inc svneol=native#text/plain
+rtl/win/winres.inc svneol=native#text/plain
 rtl/win/winsock.pp svneol=native#text/plain
 rtl/win/winsock2.pp svneol=native#text/plain
 rtl/win32/Makefile svneol=native#text/plain
@@ -5375,7 +5376,6 @@ rtl/win32/sysinitpas.pp svneol=native#text/plain
 rtl/win32/system.pp svneol=native#text/plain
 rtl/win32/wcygprt0.as -text
 rtl/win32/wdllprt0.as -text
-rtl/win32/win32res.inc svneol=native#text/plain
 rtl/win32/windows.pp svneol=native#text/plain
 rtl/win32/winsysut.pp svneol=native#text/plain
 rtl/win32/wprt0.as -text
@@ -8042,6 +8042,7 @@ tests/webtbs/tw8232.pp svneol=native#text/plain
 tests/webtbs/tw8258.pp svneol=native#text/plain
 tests/webtbs/tw8258a.pp svneol=native#text/plain
 tests/webtbs/tw8264.pp svneol=native#text/plain
+tests/webtbs/tw8304.pp svneol=native#text/plain
 tests/webtbs/tw8312.pp svneol=native#text/plain
 tests/webtbs/ub1873.pp svneol=native#text/plain
 tests/webtbs/ub1883.pp svneol=native#text/plain

+ 0 - 0
rtl/win32/win32res.inc → rtl/win/winres.inc


+ 2 - 2
rtl/win32/system.pp

@@ -110,9 +110,9 @@ implementation
 var
   SysInstance : Longint;public name '_FPC_SysInstance';
 
-{$ifdef i386}
+{$ifdef CPUI386}
 {$define HAS_RESOURCES}
-{$i win32res.inc}
+{$i winres.inc}
 {$endif}
 
 { used by wstrings.inc because wstrings.inc is included before sysos.inc

+ 1 - 3
rtl/win64/system.pp

@@ -106,10 +106,8 @@ implementation
 var
   SysInstance : Longint;public;
 
-{$ifdef i386}
 {$define HAS_RESOURCES}
-{$i win32res.inc}
-{$endif}
+{$i winres.inc}
 
 { used by wstrings.inc because wstrings.inc is included before sysos.inc
   this is put here (FK) }

+ 8 - 0
tests/webtbs/tw8304.pp

@@ -0,0 +1,8 @@
+{ %target=win32,win64 }
+program Win64HINSTANCE;
+
+{$C+}
+
+begin
+  Assert(HINSTANCE <> 0, 'HINSTANCE is zero.');
+end.