"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/stdalign.in.h" between
le-1.16.5.tar.gz and le-1.16.6.tar.gz

About: le is a terminal text editor (many block operations with stream and rectangular blocks, tunable syntax highlighting, etc.).

stdalign.in.h  (le-1.16.5):stdalign.in.h  (le-1.16.6)
/* A substitute for ISO C11 <stdalign.h>. /* A substitute for ISO C11 <stdalign.h>.
Copyright 2011-2017 Free Software Foundation, Inc. Copyright 2011-2019 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option) the Free Software Foundation; either version 3, or (at your option)
any later version. any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>. */ along with this program; if not, see <https://www.gnu.org/licenses/>. */
/* Written by Paul Eggert and Bruno Haible. */ /* Written by Paul Eggert and Bruno Haible. */
#ifndef _GL_STDALIGN_H #ifndef _GL_STDALIGN_H
#define _GL_STDALIGN_H #define _GL_STDALIGN_H
/* ISO C11 <stdalign.h> for platforms that lack it. /* ISO C11 <stdalign.h> for platforms that lack it.
References: References:
ISO C11 (latest free draft ISO C11 (latest free draft
skipping to change at line 56 skipping to change at line 56
Include <stddef.h> for offsetof. */ Include <stddef.h> for offsetof. */
#include <stddef.h> #include <stddef.h>
/* FreeBSD 9.1 <sys/cdefs.h>, included by <stddef.h> and lots of other /* FreeBSD 9.1 <sys/cdefs.h>, included by <stddef.h> and lots of other
standard headers, defines conflicting implementations of _Alignas standard headers, defines conflicting implementations of _Alignas
and _Alignof that are no better than ours; override them. */ and _Alignof that are no better than ours; override them. */
#undef _Alignas #undef _Alignas
#undef _Alignof #undef _Alignof
/* GCC releases before GCC 4.9 had a bug in _Alignof. See GCC bug 52023 /* GCC releases before GCC 4.9 had a bug in _Alignof. See GCC bug 52023
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */ <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
#if (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112 \ #if (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112 \
|| (defined __GNUC__ && __GNUC__ < 4 + (__GNUC_MINOR__ < 9))) || (defined __GNUC__ && __GNUC__ < 4 + (__GNUC_MINOR__ < 9)))
# ifdef __cplusplus # ifdef __cplusplus
# if 201103 <= __cplusplus # if 201103 <= __cplusplus
# define _Alignof(type) alignof (type) # define _Alignof(type) alignof (type)
# else # else
template <class __t> struct __alignof_helper { char __a; __t __b; }; template <class __t> struct __alignof_helper { char __a; __t __b; };
# define _Alignof(type) offsetof (__alignof_helper<type>, __b) # define _Alignof(type) offsetof (__alignof_helper<type>, __b)
# endif # endif
# else # else
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)