Skip to content

Add missing include#22

Merged
neacsum merged 1 commit intoneacsum:masterfrom
drfiemost:missing_include
Jan 18, 2026
Merged

Add missing include#22
neacsum merged 1 commit intoneacsum:masterfrom
drfiemost:missing_include

Conversation

@drfiemost
Copy link
Contributor

Fixes this error on MinGW:

In file included from ../../../tests/utpp/utpp.h:1231,
                 from ../../../tests/Main.cpp:21:
../../../tests/utpp/checks.h: In function 'bool UnitTest::CheckFileEqual(const std::string&, const std::string&, std::string&)':
../../../tests/utpp/checks.h:1266:15: error: aggregate 'UnitTest::CheckFileEqual(const std::string&, const std::string&, std::string&)::stat st1' has incomplete type and cannot be defined
 1266 |   struct stat st1, st2;
      |               ^~~

Fixes this error on MinGW:

```
In file included from ../../../tests/utpp/utpp.h:1231,
                 from ../../../tests/Main.cpp:21:
../../../tests/utpp/checks.h: In function 'bool UnitTest::CheckFileEqual(const std::string&, const std::string&, std::string&)':
../../../tests/utpp/checks.h:1266:15: error: aggregate 'UnitTest::CheckFileEqual(const std::string&, const std::string&, std::string&)::stat st1' has incomplete type and cannot be defined
 1266 |   struct stat st1, st2;
      |               ^~~
```
@neacsum neacsum merged commit 75b8ea1 into neacsum:master Jan 18, 2026
2 checks passed
@drfiemost drfiemost deleted the missing_include branch January 18, 2026 14:00
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.

2 participants