]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_hc.c
borland c and watcom 16 files made~
[16.git] / src / lib / 16_hc.c
index 20a0aac820b6122ca440bba72b7db2f018488427..b3bafefa5e1241080e597b3ed3ef90635766cc00 100755 (executable)
@@ -521,8 +521,14 @@ void heapstat0(int heap_status)
 */
 void HC_OpenDebug(global_game_variables_t *gvar)
 {
-       unlink("heap.16");
-       gvar->handle.heaphandle = open("heap.16", O_CREAT | O_WRONLY | O_TEXT);
+#ifdef __BORLANDC__
+       unlink("heap.16b");
+       gvar->handle.heaphandle = open("heap.16b", O_CREAT | O_WRONLY | O_TEXT);
+#endif
+#ifdef __WATCOMC__
+       unlink("heap.16w");
+       gvar->handle.heaphandle = open("heap.16w", O_CREAT | O_WRONLY | O_TEXT);
+#endif
 }
 
 void HC_CloseDebug(global_game_variables_t *gvar)