X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tools%2Flib%2Fcarlfw.h;h=1207e70bfec3a991a1dab8e910b2afc4ccfe0430;hb=786812b3a629e8b8b42c176df9a4d243218de179;hp=592231c84ec68f1c01a551a4b709a196c9e46865;hpb=1b87ea4a51988adea4d112ada0cb749c8059353c;p=carl9170fw.git diff --git a/tools/lib/carlfw.h b/tools/lib/carlfw.h index 592231c..1207e70 100644 --- a/tools/lib/carlfw.h +++ b/tools/lib/carlfw.h @@ -1,6 +1,31 @@ +/* + * Copyright 2010-2011 Christian Lamparter + * + * 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 version 2 of the License. + * + * 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 __CARLFW_H #define __CARLFW_H +/* These macros are already defined as part of newlib's sys/cdefs.h. + * However they are not part of standard libc which is used to compile + * the host tools. For now, simply add them here. + */ +#define __packed __attribute__((packed)) +#define __unused __attribute__((unused)) +#define __aligned(x) __attribute__((aligned(x))) + #include #include "compiler.h" #include "fwdesc.h"