1717# define O_SEQUENTIAL 0
1818#endif // M_BORLAND
1919
20- #ifdef DEBUG
20+ #ifdef FS_DEBUG
2121 XRCORE_API u32 g_file_mapped_memory = 0 ;
2222 u32 g_file_mapped_count = 0 ;
2323 typedef xr_map<u32 ,std::pair<u32 ,shared_str> > FILE_MAPPINGS;
@@ -474,7 +474,7 @@ CTempReader::~CTempReader()
474474// pack stream
475475CPackReader::~CPackReader ()
476476{
477- #ifdef DEBUG
477+ #ifdef FS_DEBUG
478478 unregister_file_mapping (base_address,Size);
479479#endif // DEBUG
480480
@@ -514,14 +514,14 @@ CVirtualFileRW::CVirtualFileRW(const char *cFileName)
514514 data = (char *)MapViewOfFile (hSrcMap, FILE_MAP_ALL_ACCESS, 0 , 0 , 0 );
515515 R_ASSERT3 (data,cFileName,Debug.error2string (GetLastError ()));
516516
517- #ifdef DEBUG
517+ #ifdef FS_DEBUG
518518 register_file_mapping (data,Size,cFileName);
519519#endif // DEBUG
520520}
521521
522522CVirtualFileRW::~CVirtualFileRW ()
523523{
524- #ifdef DEBUG
524+ #ifdef FS_DEBUG
525525 unregister_file_mapping (data,Size);
526526#endif // DEBUG
527527
@@ -544,14 +544,14 @@ CVirtualFileReader::CVirtualFileReader(const char *cFileName)
544544 data = (char *)MapViewOfFile (hSrcMap, FILE_MAP_READ, 0 , 0 , 0 );
545545 R_ASSERT3 (data,cFileName,Debug.error2string (GetLastError ()));
546546
547- #ifdef DEBUG
547+ #ifdef FS_DEBUG
548548 register_file_mapping (data,Size,cFileName);
549549#endif // DEBUG
550550}
551551
552552CVirtualFileReader::~CVirtualFileReader ()
553553{
554- #ifdef DEBUG
554+ #ifdef FS_DEBUG
555555 unregister_file_mapping (data,Size);
556556#endif // DEBUG
557557
0 commit comments