diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2014-04-13 17:46:59 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2014-04-13 17:46:59 +0000 |
commit | 2c33ae687eda6a15a5708b1ea62a99e1762cc162 (patch) | |
tree | 8db1ea9aad30583b958c22bdae43df30d4330856 /x11-wm/afterstep-stable/files/patch-libAfterBase-asvector.c | |
parent | - Add staging support (diff) |
. Don't use inline on functions that are intended to be used in multiple
files. This fixes compilation with clang.
My understanding is that the C99 standard treats inline methods as having
static linkage by default. This is different from the GNU C definition
of inline, which is why this compiled with gcc.
Notes
Notes:
svn path=/head/; revision=351234
Diffstat (limited to 'x11-wm/afterstep-stable/files/patch-libAfterBase-asvector.c')
-rw-r--r-- | x11-wm/afterstep-stable/files/patch-libAfterBase-asvector.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/x11-wm/afterstep-stable/files/patch-libAfterBase-asvector.c b/x11-wm/afterstep-stable/files/patch-libAfterBase-asvector.c new file mode 100644 index 000000000000..0c7043bed9ba --- /dev/null +++ b/x11-wm/afterstep-stable/files/patch-libAfterBase-asvector.c @@ -0,0 +1,22 @@ +$FreeBSD$ + +--- libAfterBase/asvector.c.orig 2013-05-01 06:34:11.000000000 -0700 ++++ libAfterBase/asvector.c 2014-04-12 12:22:48.000000000 -0700 +@@ -126,7 +126,7 @@ + + /* finds index of the first element in the vector that is exactly matching specifyed + * data */ +-inline size_t vector_find_data( ASVector *v, void *data ) ++size_t vector_find_data( ASVector *v, void *data ) + { + register int i ; + /* word copying is usually faster then raw memory copying */ +@@ -170,7 +170,7 @@ + return i; + } + +-inline void vector_move_data_up( ASVector *v, int index, int offset, int length ) ++void vector_move_data_up( ASVector *v, int index, int offset, int length ) + { + register int i ; + /* word copying is usually faster then raw memory copying */ |