Overview
Comment: | Make sure restrict is always defined.
This way, we also don't need -std=gnu99 in objfw-config anymore. Fixes ObjC++, for which -std=gnu99 is invalid and where there is no |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
77fe5572fe75f28cbdc7bb976c027dfb |
User & Date: | js on 2011-07-15 10:30:49 |
Other Links: | manifest | tags |
Context
2011-07-17
| ||
00:57 | Get rid of unnecessary includes of unistd.h in headers. check-in: eced1d58ea user: js tags: trunk | |
2011-07-15
| ||
10:30 | Make sure restrict is always defined. check-in: 77fe5572fe user: js tags: trunk | |
2011-07-14
| ||
23:19 | Fix a memory leak in OFArray. check-in: 41cdf54612 user: js tags: trunk | |
Changes
Modified configure.ac from [53380efae7] to [31e53b80c3].
︙ | ︙ | |||
18 19 20 21 22 23 24 | AC_PROG_EGREP CPP="$OBJCPP" CPPFLAGS="$CPPFLAGS $OBJCPPFLAGS" OBJCFLAGS="$OBJCFLAGS -Wall -fexceptions -fobjc-exceptions" OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstantString" | | < < < | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | AC_PROG_EGREP CPP="$OBJCPP" CPPFLAGS="$CPPFLAGS $OBJCPPFLAGS" OBJCFLAGS="$OBJCFLAGS -Wall -fexceptions -fobjc-exceptions" OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstantString" AX_CHECK_COMPILER_FLAGS(-std=gnu99, [OBJCFLAGS="$OBJCFLAGS -std=gnu99"]) AX_CHECK_COMPILER_FLAGS([-fgnu89-inline -Werror], [OBJCFLAGS="$OBJCFLAGS -fgnu89-inline"]) AX_CHECK_COMPILER_FLAGS(-pipe, [OBJCFLAGS="$OBJCFLAGS -pipe"]) AX_CHECK_COMPILER_FLAGS(-fno-common, [OBJCFLAGS="$OBJCFLAGS -fno-common"]) AX_CHECK_COMPILER_FLAGS(-fno-constant-cfstrings, [ OBJCFLAGS="$OBJCFLAGS -fno-constant-cfstrings" AC_SUBST(NO_CONST_CFSTRINGS, "-fno-constant-cfstrings") |
︙ | ︙ |
Modified src/OFString.h from [8d981d2192] to [9c1d78f2d3].
︙ | ︙ | |||
16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #include <stdio.h> #include <stdarg.h> #include <inttypes.h> #import "OFObject.h" #import "OFSerialization.h" @class OFConstantString; typedef uint32_t of_unichar_t; /** * \brief The encoding of a string. | > > | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #include <stdio.h> #include <stdarg.h> #include <inttypes.h> #import "OFObject.h" #import "OFSerialization.h" #import "macros.h" @class OFConstantString; typedef uint32_t of_unichar_t; /** * \brief The encoding of a string. |
︙ | ︙ |
Modified src/macros.h from [dbe9648eca] to [7481fee224].
︙ | ︙ | |||
37 38 39 40 41 42 43 44 45 46 47 48 49 50 | # define OF_CONST_FUNC __attribute__((const)) #else # define OF_INLINE inline # define OF_LIKELY(cond) cond # define OF_UNLIKELY(cond) cond # define OF_CONST_FUNC #endif /* Required to build universal binaries on OS X */ #if __BIG_ENDIAN__ || __LITTLE_ENDIAN__ # if __BIG_ENDIAN__ && __LITTLE_ENDIAN__ # error __BIG_ENDIAN__ and __LITTLE_ENDIAN__ defined! # endif # undef OF_BIG_ENDIAN | > > > > > > | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | # define OF_CONST_FUNC __attribute__((const)) #else # define OF_INLINE inline # define OF_LIKELY(cond) cond # define OF_UNLIKELY(cond) cond # define OF_CONST_FUNC #endif #if defined(__GNUC__) # define restrict __restrict__ #elif __STDC_VERSION__ < 199901L # define restrict #endif /* Required to build universal binaries on OS X */ #if __BIG_ENDIAN__ || __LITTLE_ENDIAN__ # if __BIG_ENDIAN__ && __LITTLE_ENDIAN__ # error __BIG_ENDIAN__ and __LITTLE_ENDIAN__ defined! # endif # undef OF_BIG_ENDIAN |
︙ | ︙ |
Modified utils/objfw-config.in from [862132a744] to [fdd3ab8e98].
︙ | ︙ | |||
18 19 20 21 22 23 24 | prefix="@prefix@" exec_prefix="@exec_prefix@" libdir="@libdir@" CFLAGS="" CPPFLAGS="-I@includedir@" CXXFLAGS="" OBJC="@OBJC@" | | | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | prefix="@prefix@" exec_prefix="@exec_prefix@" libdir="@libdir@" CFLAGS="" CPPFLAGS="-I@includedir@" CXXFLAGS="" OBJC="@OBJC@" OBJCFLAGS="@GNU_RUNTIME@ -fexceptions -fobjc-exceptions" OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstantString" OBJCFLAGS="$OBJCFLAGS @NO_CONST_CFSTRINGS@ @BLOCKS_FLAGS@ @NO_WARN_UNUSED@" LIB_CFLAGS="@LIB_CFLAGS@" LIB_LDFLAGS="@LIB_LDFLAGS@" LIB_PREFIX="@LIB_PREFIX@" LIB_SUFFIX="@LIB_SUFFIX@" LDFLAGS="" |
︙ | ︙ |