Skip to content

Commit

Permalink
Fix includes for IWYU
Browse files Browse the repository at this point in the history
uci.cpp should remove these lines:
- #include <cstdint>

external/zip.h should add these lines:

external/zip.cpp should add these lines:
  • Loading branch information
PikaCat-OuO committed Nov 21, 2023
1 parent 5c19c88 commit 5dd4fb4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/external/zip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#define __STDC_WANT_LIB_EXT1__ 1

#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <time.h>

Expand Down
4 changes: 4 additions & 0 deletions src/external/zip.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
#include <string.h>
#include <sys/types.h>

#ifdef __linux__
#include <features.h>
#endif

#ifndef ZIP_SHARED
#define ZIP_EXPORT
#else
Expand Down
1 change: 0 additions & 1 deletion src/uci.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <deque>
#include <iostream>
Expand Down

0 comments on commit 5dd4fb4

Please sign in to comment.