Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: Define PY3_DLLNAME as wide string to fix C4133 warnings #421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

jcfr
Copy link
Contributor

@jcfr jcfr commented Jun 11, 2025

Fixes warnings when passing narrow string literals to Windows APIs expecting wide strings:

C:\path\to\Python-3.12.10\Python\dynload_win.c(191,27): warning C4133: 'function': incompatible types - from 'char [8]
' to 'const wchar_t *' [C:\path\to\pycbs-3.12-build\CMakeBuild\libpython\libpython-shared.vcxproj]

Ensures PY3_DLLNAME is consistently defined with the wide string modifier (L) across relevant CMake sections.


Working toward addressing:

Fixes warnings when passing narrow string literals to Windows APIs
expecting wide strings:

```
C:\path\to\Python-3.12.10\Python\dynload_win.c(191,27): warning C4133: 'function': incompatible types - from 'char [8]
' to 'const wchar_t *' [C:\path\to\pycbs-3.12-build\CMakeBuild\libpython\libpython-shared.vcxproj]
```

Ensures PY3_DLLNAME is consistently defined with the wide string modifier (`L`) across relevant CMake sections.
@jcfr jcfr merged commit 606dce1 into python-cmake-buildsystem:master Jun 11, 2025
28 checks passed
@jcfr jcfr deleted the define-PY3_DLLNAME-with-wide-char-modifier branch June 11, 2025 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant