Skip to content

Fix -Wundef warning#232

Open
g0mb4 wants to merge 1 commit intotsoding:mainfrom
g0mb4:ifdef-WIN32
Open

Fix -Wundef warning#232
g0mb4 wants to merge 1 commit intotsoding:mainfrom
g0mb4:ifdef-WIN32

Conversation

@g0mb4
Copy link
Copy Markdown

@g0mb4 g0mb4 commented Apr 15, 2026

Using GCC 11.4.0 with the -Wundef flag on Linux, I get the following warning:

warning: "_WIN32" is not defined, evaluates to 0 [-Wundef]

Since the codebase uses #ifdef _WIN32 elsewhere, it seems like a proper fix to change the two remaining instances of #if _WIN32.

Using GCC 11.4.0 with the `-Wundef` flag on Linux, I get the following warning:

```bash
warning: "_WIN32" is not defined, evaluates to 0 [-Wundef]
```

Since the codebase uses `#ifdef _WIN32` elsewhere, it seems like a proper fix
to change the two remaining instances of `#if _WIN32`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant