* configure.ac,
[cacao.git] / src / vmcore / class.h
index 051853363ad38bf7dbd149156462294df8653a79..5dec548cd79cb45aa4e2b82ffc134d0ef35c74b8 100644 (file)
@@ -22,7 +22,7 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   $Id: class.h 8060 2007-06-10 20:00:40Z twisti $
+   $Id: class.h 8132 2007-06-22 11:15:47Z twisti $
 
 */
 
@@ -39,6 +39,9 @@ typedef struct castinfo       castinfo;
 
 
 #include "config.h"
+
+#include <stdint.h>
+
 #include "vm/types.h"
 
 #include "toolbox/list.h"
@@ -82,7 +85,15 @@ typedef struct castinfo       castinfo;
 
 typedef struct {
        java_objectheader header;
-       ptrint            padding[4];
+#if defined(WITH_CLASSPATH_GNU)
+       intptr_t           padding[4];
+#elif defined(WITH_CLASSPATH_SUN)
+       intptr_t           padding[19];
+#elif defined(WITH_CLASSPATH_CLDC1_1)
+       intptr_t           padding[3];
+#else
+# error unknown classpath configuration
+#endif
 } dummy_java_lang_Class;
 
 struct classinfo {                /* class structure                          */