* src/vm/loader.c: Moved to .cpp.
[cacao.git] / src / vm / jit / stack.h
index eceb2db2204fd84ca3b6256b58a5a471c9d559a9..803d2db11d83ed7ae3d5c3e5c561e6554613e1bd 100644 (file)
@@ -37,10 +37,9 @@ typedef struct stackelement_t stackelement_t;
 
 #include "vm/types.h"
 
-#include "vm/exceptions.h"
 #include "vm/global.h"
 
-#include "vm/jit/jit.h"
+#include "vm/jit/jit.hpp"
 #include "vm/jit/reg.h"
 
 
@@ -162,12 +161,20 @@ struct stackelement_t {
 
 /* function prototypes ********************************************************/
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 bool stack_init(void);
 
 bool stack_analyse(jitdata *jd);
 
 void stack_javalocals_store(instruction *iptr, s4 *javalocals);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _STACK_H */