diff options
Diffstat (limited to 'src/java/com/jogamp/gluegen/JavaEmitter.java')
-rw-r--r-- | src/java/com/jogamp/gluegen/JavaEmitter.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/java/com/jogamp/gluegen/JavaEmitter.java b/src/java/com/jogamp/gluegen/JavaEmitter.java index d92e589..a3ee962 100644 --- a/src/java/com/jogamp/gluegen/JavaEmitter.java +++ b/src/java/com/jogamp/gluegen/JavaEmitter.java @@ -49,6 +49,14 @@ import java.util.*; import java.text.MessageFormat; import com.jogamp.gluegen.cgram.types.*; +import com.jogamp.gluegen.runtime.types.CompoundType; +import com.jogamp.gluegen.runtime.types.Field; +import com.jogamp.gluegen.runtime.types.FunctionType; +import com.jogamp.gluegen.runtime.types.PointerType; +import com.jogamp.gluegen.runtime.types.SizeThunk; +import com.jogamp.gluegen.runtime.types.StructLayout; +import com.jogamp.gluegen.runtime.types.Type; + import java.nio.Buffer; import java.util.logging.Logger; @@ -1424,7 +1432,7 @@ public class JavaEmitter implements GlueEmitter { private StructLayout getLayout() { if (layout == null) { - layout = StructLayout.createForCurrentPlatform(); + layout = StructLayout.create(0); } return layout; } |