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 | 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" |
︙ |
Modified src/OFString.h from [8d981d2192] to [9c1d78f2d3].
︙ | |||
16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 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 | 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 | 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@" |
︙ |