* src/native/jni.hpp: We typedef the JNI types to the CACAO internal
[cacao.git] / src / native / vm / openjdk / hpi.c
index 50cdab47226f0ebc1e6b171b97fffe37b4067b86..3f4eeb7d9ae50e7ca94e11a17bf0e7b816f1a8d3 100644 (file)
 
 #include "config.h"
 
-/* We include hpi_md.h before hpi.h as the latter includes the
-   former. */
+// Include our JNI header before the HPI headers, because the HPI
+// headers include jni.h and we want to override the typedefs in
+// jni.h.
+#include "native/jni.hpp"
 
+// We include hpi_md.h before hpi.h as the latter includes the former.
 #include INCLUDE_HPI_MD_H
 #include INCLUDE_HPI_H
 
 #include "mm/memory.h"
 
-#include "native/jni.hpp"
 #include "native/native.hpp"
 
 #include "native/vm/openjdk/hpi.h"