Browse Source

Some more Windows fixes

Marco Bambini 8 years ago
parent
commit
54d16a5b14
2 changed files with 4 additions and 1 deletions
  1. 1 1
      gravity_visualstudio/exports.def
  2. 3 0
      gravity_visualstudio/unistd.h

+ 1 - 1
gravity_visualstudio/exports.def

@@ -9,7 +9,7 @@ EXPORTS
 	gravity_vm_free
 ;	gravity_vm_reset
 	gravity_vm_runclosure
-	gravity_vm_run
+	gravity_vm_runmain
 	gravity_vm_setvalue
 	gravity_vm_lookup
 	gravity_vm_getvalue

+ 3 - 0
gravity_visualstudio/unistd.h

@@ -15,4 +15,7 @@ typedef int mode_t;
 #define read _read
 #define write _write
 
+#define snprintf _snprintf
+#define __func__ __FUNCTION__
+
 // Fix for Visual Studio