From 6c51cf513d98adcf34a342c7e9d885a6c788cda8 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 9 Nov 2020 06:55:39 -0700 Subject: Move include block to pathstuff.h A recent commit caused pathstuff.cc to fail to compile on mingw, like: ../../binutils-gdb/gdbsupport/pathstuff.cc:324:1: error: no previous declaration for 'std::string find_gdb_home_config_file(const char*, _stati64*)' [-Werror=missing-declarations] Some newly-added #includes were changing which "stat" was being seen by the compiler. This patch moves the includes to the header, so that the declaration and definition now agree. 2020-11-10 Tom Tromey PR build/26848: * pathstuff.h: Move include block here... * pathstuff.cc: ... from here. --- gdbsupport/pathstuff.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gdbsupport/pathstuff.cc') diff --git a/gdbsupport/pathstuff.cc b/gdbsupport/pathstuff.cc index a52e53b..3114567 100644 --- a/gdbsupport/pathstuff.cc +++ b/gdbsupport/pathstuff.cc @@ -23,10 +23,6 @@ #include "filenames.h" #include "gdb_tilde_expand.h" -#include -#include -#include - #ifdef USE_WIN32API #include #endif -- cgit v1.1