"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/stddef.in.h" between
gcal-4.tar.gz and gcal-4.1.tar.gz

About: Gcal displays month/year calendar sheets, eternal holiday and fixed date lists in many ways.

stddef.in.h  (gcal-4):stddef.in.h  (gcal-4.1)
/* A substitute for POSIX 2008 <stddef.h>, for platforms that have issues. /* A substitute for POSIX 2008 <stddef.h>, for platforms that have issues.
Copyright (C) 2009-2015 Free Software Foundation, Inc. Copyright (C) 2009-2017 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.
skipping to change at line 84 skipping to change at line 84
# endif # endif
# ifndef _@GUARD_PREFIX@_STDDEF_H # ifndef _@GUARD_PREFIX@_STDDEF_H
# define _@GUARD_PREFIX@_STDDEF_H # define _@GUARD_PREFIX@_STDDEF_H
/* Some platforms lack wchar_t. */ /* Some platforms lack wchar_t. */
#if !@HAVE_WCHAR_T@ #if !@HAVE_WCHAR_T@
# define wchar_t int # define wchar_t int
#endif #endif
/* Some platforms lack max_align_t. */ /* Some platforms lack max_align_t. The check for _GCC_MAX_ALIGN_T is
#if !@HAVE_MAX_ALIGN_T@ a hack in case the configure-time test was done with g++ even though
we are currently compiling with gcc. */
#if ! (@HAVE_MAX_ALIGN_T@ || defined _GCC_MAX_ALIGN_T)
/* On the x86, the maximum storage alignment of double, long, etc. is 4, /* On the x86, the maximum storage alignment of double, long, etc. is 4,
but GCC's C11 ABI for x86 says that max_align_t has an alignment of 8, but GCC's C11 ABI for x86 says that max_align_t has an alignment of 8,
and the C11 standard allows this. Work around this problem by and the C11 standard allows this. Work around this problem by
using __alignof__ (which returns 8 for double) rather than _Alignof using __alignof__ (which returns 8 for double) rather than _Alignof
(which returns 4), and align each union member accordingly. */ (which returns 4), and align each union member accordingly. */
# ifdef __GNUC__ # ifdef __GNUC__
# define _GL_STDDEF_ALIGNAS(type) \ # define _GL_STDDEF_ALIGNAS(type) \
__attribute__ ((__aligned__ (__alignof__ (type)))) __attribute__ ((__aligned__ (__alignof__ (type))))
# else # else
# define _GL_STDDEF_ALIGNAS(type) /* */ # define _GL_STDDEF_ALIGNAS(type) /* */
 End of changes. 2 change blocks. 
3 lines changed or deleted 5 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS