Browse Source

* Fix compilation for JVM cpu

git-svn-id: trunk@32956 -
pierre 9 years ago
parent
commit
238040afdd
1 changed files with 7 additions and 1 deletions
  1. 7 1
      tests/test/cg/ptest.pp

+ 7 - 1
tests/test/cg/ptest.pp

@@ -8,9 +8,15 @@ unit ptest;
 
 
 interface
 interface
 
 
+{$ifndef CPUJVM}
 uses
 uses
   ctypes;
   ctypes;
-	
+{$else}
+{ CLONGDOUBLE type does not exist for java }
+type
+  clongdouble = double;
+{$endif ndef CPUJVM}
+
 { Use C alignment of records }
 { Use C alignment of records }
 {$PACKRECORDS C}
 {$PACKRECORDS C}
 const
 const