소스 검색

Merged revision(s) 31864, 31883 from trunk:
* Use "clongdouble" instead of "extended" in libc printf tests.
........
* use cextended instead of clongdouble, so that the tests keeps compiling
for platforms where we don't support the "long double" type
........

git-svn-id: branches/fixes_3_0@31959 -

yury 9 년 전
부모
커밋
8f1a63e26a
3개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 2
      tests/test/cg/tprintf.pp
  2. 2 2
      tests/test/cg/tprintf2.pp
  3. 2 2
      tests/test/cg/tprintf3.pp

+ 2 - 2
tests/test/cg/tprintf.pp

@@ -4,7 +4,7 @@
 {$mode objfpc}
 
 uses
-  strings;
+  strings, ctypes;
 
 {$ifdef FPC_HAS_TYPE_EXTENDED}
 {$define TEST_EXTENDED}
@@ -54,7 +54,7 @@ const
   s2 : pchar = 'next';
   si : single = 32.12;
   d : double = 45.45;
-  e : extended = 74.74;
+  e : cextended = 74.74;
   p : pchar = nil;
   has_errors : boolean = false;
 

+ 2 - 2
tests/test/cg/tprintf2.pp

@@ -4,7 +4,7 @@
 {$mode objfpc}
 
 uses
-  strings;
+  strings, ctypes;
 
 {$ifdef FPC_HAS_TYPE_EXTENDED}
 {$define TEST_EXTENDED}
@@ -54,7 +54,7 @@ const
   s2 : pchar = 'next';
   si : single = 32.12;
   d : double = 45.45;
-  e : extended = 74.74;
+  e : cextended = 74.74;
   p : pchar = nil;
   has_errors : boolean = false;
 

+ 2 - 2
tests/test/cg/tprintf3.pp

@@ -5,7 +5,7 @@
 {$mode macpas}
 
 uses
-  strings, uprintf3;
+  strings, uprintf3, ctypes;
 
 {$ifdef FPC_HAS_TYPE_EXTENDED}
 {$define TEST_EXTENDED}
@@ -39,7 +39,7 @@ const
   s2 : pchar = 'next';
   si : single = 32.12;
   d : double = 45.45;
-  e : extended = 74.74;
+  e : cextended = 74.74;
   p : pchar = nil;
   has_errors : boolean = false;