X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fhelper%2Fsystem.h;h=bd96d626abc469d64cb25675ad6c7c86809fe451;hb=50f80530c55a044be88bb90a574959e920e7be82;hp=f710cfb5c5ac5717ca6fe975d027e844ba9d980b;hpb=08d4411b59dd8bd0e7d8009003b71d23acbf6eee;p=fw%2Fopenocd diff --git a/src/helper/system.h b/src/helper/system.h index f710cfb5c..bd96d626a 100644 --- a/src/helper/system.h +++ b/src/helper/system.h @@ -1,27 +1,23 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + /*************************************************************************** * Copyright (C) 2006 by Dominic Rath * * Copyright (C) 2007-2008 by Øyvind Harboe * * Copyright (C) 2008 by Spencer Oliver * * Copyright (C) 2009 by Zachary T Welch * - * * - * 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 2 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 SYSTEM_H -#define SYSTEM_H +#ifndef OPENOCD_HELPER_SYSTEM_H +#define OPENOCD_HELPER_SYSTEM_H + +/* +++ platform specific headers +++ */ +#ifdef _WIN32 +#include +#include +#include +#include +#endif +/* --- platform specific headers --- */ /* standard C library header files */ #include @@ -30,34 +26,17 @@ #include #include #include +#include -/* +++ AC_HEADER_TIME +++ */ -#ifdef TIME_WITH_SYS_TIME -# include -# include -#else -# ifdef HAVE_SYS_TIME_H -# include -# else -# include -# endif +#ifdef HAVE_SYS_TIME_H +#include #endif -/* --- AC_HEADER_TIME --- */ - -/* +++ platform specific headers +++ */ -#ifdef _WIN32 -#include -#include -#include -#include -#endif -/* --- platform specific headers --- */ #ifdef HAVE_SYS_SOCKET_H #include #endif -#ifdef HAVE_SYS_POLL_H -#include +#ifdef HAVE_POLL_H +#include #endif #ifdef __ECOS @@ -88,4 +67,4 @@ #define false 0 #endif -#endif /* SYSTEM_H */ +#endif /* OPENOCD_HELPER_SYSTEM_H */