Skip to content

Commit 7081702

Browse files
committed
Fixing windows build issues
Signed-off-by: Matthew A Johnson <matjoh@microsoft.com>
1 parent 2b0c57d commit 7081702

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

PCbuild/_freeze_module.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@
208208
<ClCompile Include="..\Python\hashtable.c" />
209209
<ClCompile Include="..\Python\import.c" />
210210
<ClCompile Include="..\Python\importdl.c" />
211+
<ClCompile Include="..\Python\immutability.c" />
211212
<ClCompile Include="..\Python\initconfig.c" />
212213
<ClCompile Include="..\Python\intrinsics.c" />
213214
<ClCompile Include="..\Python\instrumentation.c" />

PCbuild/_freeze_module.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@
208208
<ClCompile Include="..\Python\importdl.c">
209209
<Filter>Source Files</Filter>
210210
</ClCompile>
211+
<CLCompile Include="..\Python\immutability.c">
212+
<Filter>Source Files</Filter>
213+
</CLCompile>
211214
<ClCompile Include="..\Python\initconfig.c">
212215
<Filter>Source Files</Filter>
213216
</ClCompile>

Python/immutability.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,12 +454,12 @@ bool _Py_GlobalsImmutable_Check()
454454

455455
main = PyInterpreterState_Main();
456456
if(main == NULL){
457-
return NULL;
457+
return false;
458458
}
459459

460460
main_dict = PyInterpreterState_GetDict(main);
461461
if(main_dict == NULL){
462-
return NULL;
462+
return false;
463463
}
464464

465465
flag = PyDict_GetItemString(main_dict, "__globals_immutable__");

0 commit comments

Comments
 (0)