X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gprof%2Fhertz.h;h=43d70ef41aef7167a913ec06a161b331225539ed;hb=77f0e74cbe2ee7e874432776a0394a3d2a7a4342;hp=2ea01bac8828a349d9428b87f34eaf917f97eb43;hpb=fa803dc60f0bf01297674c41d001798e18ade4dc;p=deliverable%2Fbinutils-gdb.git diff --git a/gprof/hertz.h b/gprof/hertz.h index 2ea01bac88..43d70ef41a 100644 --- a/gprof/hertz.h +++ b/gprof/hertz.h @@ -1,8 +1,25 @@ +/* Copyright (C) 2012-2019 Free Software Foundation, Inc. + + This file is part of GNU Binutils. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, + MA 02110-1301, USA. */ + #ifndef hertz_h #define hertz_h -#include "gprof.h" - #define HZ_WRONG 0 /* impossible clock frequency */ /* @@ -10,13 +27,6 @@ * we return HZ_WRONG, an impossible sampling frequency. */ -/* FIXME: Checking for MACH here makes no sense when for a cross - gprof. */ -#ifdef MACH -#include -#define hertz() (HZ) -#else -extern int hertz PARAMS ((void)); -#endif +extern int hertz (void); #endif /* hertz_h */