Changeset 98737 in vbox
- Timestamp:
- Feb 25, 2023 8:51:38 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 156042
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r98732 r98737 5039 5039 SDK_VBoxLibLzma_INCS ?= $(SDK_VBoxLibLzma_DEFAULT_INCS) 5040 5040 SDK_VBoxLibLzma_LIBS ?= $(PATH_STAGE_LIB)/VBox-liblzma$(VBOX_SUFF_LIB) 5041 5042 SDK_VBoxLibLzma-x86 := liblzma/x86 compressor/decompressor for dll linking. 5043 SDK_VBoxLibLzma-x86_EXTENDS := VBoxLibLzma 5044 SDK_VBoxLibLzma_LIBS-x86 ?= $(PATH_STAGE_LIB)/VBox-liblzma-x86$(VBOX_SUFF_LIB) 5041 5045 5042 5046 SDK_VBoxLibLzmaStatic := liblzma for static linking -
trunk/src/libs/liblzma-5.4.1/common/common.c
r98730 r98737 48 48 ptr = allocator->alloc(allocator->opaque, 1, size); 49 49 else 50 #ifndef VBOX 50 51 ptr = malloc(size); 52 #else 53 ptr = RTMemAlloc(size); 54 #endif 51 55 52 56 return ptr; … … 68 72 memzero(ptr, size); 69 73 } else { 74 #ifndef VBOX 70 75 ptr = calloc(1, size); 76 #else 77 ptr = RTMemAllocZ(size); 78 #endif 79 71 80 } 72 81 … … 81 90 allocator->free(allocator->opaque, ptr); 82 91 else 92 #ifndef VBOX 83 93 free(ptr); 94 #else 95 RTMemFree(ptr); 96 #endif 84 97 85 98 return; -
trunk/src/libs/liblzma-5.4.1/common/stream_decoder_mt.c
r98730 r98737 1363 1363 // towards more favorable conditions (less memory in use, 1364 1364 // more in cache). 1365 #ifndef VBOX 1365 1366 uint64_t mem_in_use; 1366 1367 uint64_t mem_cached; 1368 #else 1369 uint64_t mem_in_use = 0; /* Shut up msc who can't grok the mythread_sync construct below. */ 1370 uint64_t mem_cached = 0; 1371 #endif 1367 1372 struct worker_thread *thr = NULL; // Init to silence warning. 1368 1373 -
trunk/src/libs/liblzma-5.4.1/common/stream_encoder_mt.c
r98730 r98737 650 650 651 651 if (block_error) { 652 #ifndef VBOX 652 653 lzma_ret ret; 654 #else 655 lzma_ret ret = LZMA_OK; /* Shut up msc who can't grok the mythread_sync construct below. */ 656 #endif 653 657 654 658 mythread_sync(coder->mutex) { -
trunk/src/libs/liblzma-5.4.1/vbox/sysdefs.h
r98730 r98737 60 60 #define TUKLIB_GNUC_REQ(major, minor) RT_GNUC_PREREQ(major, minor) 61 61 #define assert(expr) Assert(expr) 62 63 64 #define malloc(size) RTMemAlloc(size)65 #define calloc(nmemb, size) RTMemAllocZ(nmemb * size)66 67 68 DECL_FORCE_INLINE(void) free(void *ptr)69 {70 RTMemFree(ptr);71 }72 62 73 63 #if 0
Note:
See TracChangeset
for help on using the changeset viewer.