mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Win: include <cctype> for isalpha without PCH
Building the workspace with `--without-pch` fails on MSVC:
source/lib/sysdep/os/win/acpi.cpp(123): error C3861: 'isalpha':
identifier not found
The pre-compiled header normally brings in `<cctype>`, but when PCH
generation is disabled the translation unit must include the header
explicitly.
Add the missing `#include <cctype>` to
`source/lib/sysdep/os/win/acpi.cpp`.
No functional change; the code now compiles cleanly with or without PCH.
This commit is contained in:
parent
8ccba254fe
commit
df7b2fcd2a
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2024 Wildfire Games.
|
||||
/* Copyright (C) 2025 Wildfire Games.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining
|
||||
* a copy of this software and associated documentation files (the
|
||||
|
|
@ -29,6 +29,7 @@
|
|||
#include "lib/sysdep/os/win/wfirmware.h"
|
||||
|
||||
#include <atomic>
|
||||
#include <cctype>
|
||||
|
||||
#pragma pack(1)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue