Skip to content

Commit

Permalink
Fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rdb committed Nov 24, 2017
1 parent d755de8 commit 409b241
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion direct/src/showutil/FreezeTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -1830,7 +1830,7 @@ def _replace_symbol(self, data, symbol_name, replacement):

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
Expand Down
4 changes: 3 additions & 1 deletion dtool/src/prc/configPageManager.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions pandatool/src/deploy-stub/deploy-stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 409b241

Please sign in to comment.