mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Fix compile errors
This commit is contained in:
parent
d755de849c
commit
409b241b40
@ -1830,7 +1830,7 @@ class Freezer:
|
||||
|
||||
elif data[:4] in (b'\xFE\xED\xFA\xCE', b'\xCE\xFA\xED\xFE',
|
||||
b'\xFE\xED\xFA\xCF', b'\xCF\xFA\xED\xFE'):
|
||||
off = self._find_symbol_macho(macho_data, symbol_name)
|
||||
off = self._find_symbol_macho(data, symbol_name)
|
||||
if off is not None:
|
||||
data[off:off+len(replacement)] = replacement
|
||||
return True
|
||||
|
@ -117,8 +117,10 @@ reload_implicit_pages() {
|
||||
};
|
||||
#ifdef _MSC_VER
|
||||
const BlobInfo *blobinfo = (const BlobInfo *)GetProcAddress(GetModuleHandle(NULL), "blobinfo");
|
||||
#else
|
||||
#elif defined(RTLD_SELF)
|
||||
const BlobInfo *blobinfo = (const BlobInfo *)dlsym(RTLD_SELF, "blobinfo");
|
||||
#else
|
||||
const BlobInfo *blobinfo = (const BlobInfo *)dlsym(dlopen(NULL, RTLD_NOW), "blobinfo");
|
||||
#endif
|
||||
if (blobinfo != nullptr && (blobinfo->version == 0 || blobinfo->num_pointers < 10)) {
|
||||
blobinfo = nullptr;
|
||||
|
@ -362,9 +362,9 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
if (codepage != 0) {
|
||||
SetConsoleCP(codepage);
|
||||
SetConsoleOutputCP(codepage);
|
||||
if (blobinfo.codepage != 0) {
|
||||
SetConsoleCP(blobinfo.codepage);
|
||||
SetConsoleOutputCP(blobinfo.codepage);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user