search for: __stdc_version__

Displaying 18 results from an estimated 18 matches for "__stdc_version__".

2017 Dec 16
0
[PATCH] opus_defines.h: disable restrict with gcc < 3.4
...pus_defines.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/opus_defines.h b/include/opus_defines.h index 33c5acd..306887d 100644 --- a/include/opus_defines.h +++ b/include/opus_defines.h @@ -86,7 +86,11 @@ extern "C" { # endif # endif -#if (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L) ) +#if (defined(__GNUC__) && !OPUS_GNUC_PREREQ(3,4)) +/* __restrict is broken with gcc < 3.4 + https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6392 */ +# define OPUS_RESTRICT +#elif (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L) ) # if...
2013 Jan 07
1
[PATCH] drivers/xen: avoid out-of-range write in xen_add_device
...de/xen/interface/physdev.h > index 1844d31..24fd218 100644 > --- a/include/xen/interface/physdev.h > +++ b/include/xen/interface/physdev.h > @@ -242,11 +242,7 @@ struct physdev_pci_device_add { > uint8_t bus; > uint8_t devfn; > } physfn; > -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L > - uint32_t optarr[]; > -#elif defined(__GNUC__) > - uint32_t optarr[0]; > -#endif > + uint32_t optarr[1]; > }; > > #define PHYSDEVOP_pci_device_remove 26 > -- > 1.7.10.4 >
2013 Jan 07
1
[PATCH] drivers/xen: avoid out-of-range write in xen_add_device
...de/xen/interface/physdev.h > index 1844d31..24fd218 100644 > --- a/include/xen/interface/physdev.h > +++ b/include/xen/interface/physdev.h > @@ -242,11 +242,7 @@ struct physdev_pci_device_add { > uint8_t bus; > uint8_t devfn; > } physfn; > -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L > - uint32_t optarr[]; > -#elif defined(__GNUC__) > - uint32_t optarr[0]; > -#endif > + uint32_t optarr[1]; > }; > > #define PHYSDEVOP_pci_device_remove 26 > -- > 1.7.10.4 >
2017 May 11
3
problem (and fix) with -fms-extensions
...-366,6 +366,8 @@ static void InitializeStandardPredefined else Builder.defineMacro("__STDC_HOSTED__"); + if (LangOpts.MicrosoftMode) + Builder.defineMacro("__ms_extensions__", 1); if (!LangOpts.CPlusPlus) { if (LangOpts.C11) Builder.defineMacro("__STDC_VERSION__", "201112L"); -------------- next part -------------- Index: lib/Frontend/InitPreprocessor.cpp =================================================================== RCS file: /build/data/openbsd/cvs/src/gnu/llvm/tools/clang/lib/Frontend/InitPreprocessor.cpp,v retrieving revision 1.1.1....
2017 May 12
2
problem (and fix) with -fms-extensions
...> > Builder.defineMacro("__STDC_HOSTED__"); > > > > + if (LangOpts.MicrosoftMode) > > + Builder.defineMacro("__ms_extensions__", 1); > > if (!LangOpts.CPlusPlus) { > > if (LangOpts.C11) > > Builder.defineMacro("__STDC_VERSION__", "201112L"); > > Looks fine to me, though you would also have to convince the gcc authors > to do the same. (That is, if you still want to use recent gcc's... :) Well, the licence means we care a little less about gcc for obvious reasons. Working with the llvm/clang...
2013 Jan 08
1
[PATCH][firmware] efi: Fix build with gnu-efi >= 3.0s
...changed, 16 insertions(+), 3 deletions(-) diff --git a/efi/efi.h b/efi/efi.h index 6472d6a..c5bd777 100644 --- a/efi/efi.h +++ b/efi/efi.h @@ -4,6 +4,21 @@ #include <core.h> #include <sys/types.h> /* needed for off_t */ //#include <syslinux/version.h> /* avoid redefinition of __STDC_VERSION__ */ + +/* + * gnu-efi >= 3.0s enables GNU_EFI_USE_MS_ABI by default, which means + * that we must also enable it if supported by the compiler. Note that + * failing to enable GNU_EFI_USE_MS_ABI if gnu-efi was compiled with + * it on will result in undefined references to uefi_call_wrapper(). + *...
2012 Sep 20
17
[PATCH 0/4] Add V4V to Xen (v6)
v6 changes: - Check compiler before using [0] or []. v5 changes: - Fix prototypes in v4v.h for do_v4v_op - Add padding to make sure all the structures are 64 bits aligned - Replace [0] with [] v4 changes: - Stop using ssize_t, use long instead - Return -MSGSIZE for message bigger than 2GB - Fixup size handling - Rename
2007 Aug 08
0
Use of __FUNCTION__ and__PRETTY_FUNCTION__ is not portable
These are C/C++ extensions found in several packages[1]. They are non-standard: the C99 standard has __func__ which should be used in C in place of either. If you really want back compatibilty, try something like #if __STDC_VERSION__ < 199901L # if __GNUC__ >= 2 # define __func__ __FUNCTION__ # else # define __func__ "<unknown>" # endif #endif I don't know a portable equivalent in C++, but I do know that some non-GNU C++ compilers do not support these, so they should be conditionalized on __GNUC__...
2009 Oct 27
1
dovecot-2.0.alpha2 doesn't compile on Mac OS X
Howdy, dovecot-2.0.alpha2 doesn't compile on Mac OS X. First, trivially, there's a typo in array.h: --- a/src/lib/array.h 2009-10-08 10:04:35.000000000 -0500 +++ b/src/lib/array.h 2009-10-27 10:35:58.000000000 -0500 @@ -72,7 +72,7 @@ (elem)++) # define array_foreach_modifiable(array, elem) \ for (elem = ARRAY_TYPE_CAST_MODIFIABLE(array) \ -
2016 Aug 01
4
OpenSSH 7.3p1 can't be build on Solaris 10
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 configure:17280: result: no configure:17300: checking for mblen configure:17356: gcc -o conftest -O3 -m64 -mtune=native -pipe -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset
2012 Jul 24
2
Broadcom NetXtreme bcm5720 in the 9.1 beta
Team I have a Dell PowerEdge R720xd, with the Broadcom NetXtreme bcm5720. I found the following thread: http://forums.freebsd.org/showthread.php?t=31769 I find I am unable to use the NIC's (there are 4 on the server). When we put a cable into it we get a "watchdog timeout -- resetting" error, and the machine will pause for 5 or so seconds. IP may or may not come up randomly.
2013 Nov 18
2
[PATCH] al175: updated driver, please restore it
...tomatically > > > put a function name as prefix into trace output through the use of > > > __FUNCTION__. if it is (again) a protability problem, we could always > > > workaround this as follows (taken from gcc manual): > > > > > > > > > #if __STDC_VERSION__ < 199901L > > > # if __GNUC__ >= 2 > > > # define __func__ __FUNCTION__ > > > # else > > > # define __func__ "<unknown>" > > > # endif > > > #endif > > > > > > > > &gt...
2015 Jun 03
5
[PATCH 1/1] Updated opus_types.h to correctly support 8 and 64 bit types.
...stribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions @@ -35,125 +36,199 @@ /* Use the real stdint.h if it's there (taken from Paul Hsieh's pstdint.h) */ #if (defined(__STDC__) && __STDC__ && __STDC_VERSION__ >= 199901L) || (defined(__GNUC__) && (defined(_STDINT_H) || defined(_STDINT_H_)) || defined (HAVE_STDINT_H)) -#include <stdint.h> +# include <stdint.h> + typedef int8_t opus_int8; + typedef uint8_t opus_uint8; typedef int16_t opus_int16; typedef uint16_t opus_u...
2012 Jun 23
9
[PATCH 0/5] btrfs: lz4/lz4hc compression
WARNING: This is not compatible with the previous lz4 patchset. If you''re using experimental compression that isn''t in mainline kernels, be prepared to backup and restore or decompress before upgrading, and have backups in case it eats data (which appears not to be a problem any more, but has been during development). These patches add lz4 and lz4hc compression
2012 Feb 13
10
[RFB] add LZ4 compression method to btrfs
Hi, so here it is, LZ4 compression method inside btrfs. The patchset is based on top of current Chris'' for-linus + Andi''s snappy implementation + the fixes from Li Zefan. Passes xfstests and stresstests. I haven''t measured performance on wide range of hardware or workloads, rather wanted to publish the patches before I get distracted again. I''d like to ask
2013 Oct 26
2
[PATCH] 1. changes for vdiskadm on illumos based platform
..._powerpc) || defined(powerpc) || \ + ((defined(__BYTE_ORDER__)&&(__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)))) +#define LZ4_BIG_ENDIAN 1 +#else + /* + * Little Endian assumed. PDP Endian and other very rare endian format + * are unsupported. + */ +#endif + +/* + * Compiler Options + */ +#if __STDC_VERSION__ >= 199901L /* C99 */ +/* "restrict" is a known keyword */ +#else +/* Disable restrict */ +#define restrict +#endif + +#define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) + +#define lz4_bswap16(x) ((unsigned short int) ((((x) >> 8) & 0xffu) \ + | (((x) & 0xffu) <<...
2011 Jun 02
48
[PATCH 0/9] libxl: disk configuration handling
This is v3 of my disk series. What were previously patches 01-06 have been applied. These are the tested and updated remainder, addressing the previous comments. 1 Preparatory work. 2-4 The new parser and its documentation. 5-6 Replace old parsers with calls to the new one. 7-8 Two features, one of them essential. 9 Basic test suite for disk string parsing, as adhoc script.
2012 Apr 30
5
[PATCH 0/4 v1] Remove gettextify, implement OCaml gettext.
Version 1 of the patch, for discussion, but not to be applied. It does work, but needs a lot more testing. This removes all the psychopathic gettextify cruft, and replaces it with a 99 line Makefile.am. A large win, I think. The third patch implements gettext support in the OCaml tools. The fourth patch is just for illustration. It shows the consequent changes to libguestfs.pot and the po