Move definition of __inline for non-gcc from ic.c to icint.h so it applies to more code in the implementation.

This commit is contained in:
Carl Worth 2005-02-21 12:57:27 +00:00
parent 30a02c8e17
commit 6d70b286f5
3 changed files with 10 additions and 7 deletions

View file

@ -1,3 +1,9 @@
2005-02-21 Carl Worth <cworth@cworth.org>
* src/ic.c:
* src/icint.h: Move definition of __inline for non-gcc from ic.c
to icint.h so it applies to more code in the implementation.
2005-02-06 Owen Taylor <otaylor@redhat.com>
* configure.in: Add AC_PREREQ(2.54) to help the Debian

View file

@ -23,11 +23,6 @@
#include "icint.h"
#ifndef __GNUC__
#define __inline
#endif
#define cvt8888to0565(s) ((((s) >> 3) & 0x001f) | \
(((s) >> 5) & 0x07e0) | \
(((s) >> 8) & 0xf800))

View file

@ -33,10 +33,12 @@
#include <string.h>
#include <limits.h>
#include "slim_internal.h"
#ifndef __GNUC__
#define __inline
#endif
/* C89 has implementation-defined behavior for % with negative operands.
C99 has well-defined behavior which is that / with integers rounds toward zero
and a%b is defined so that (a/b)*b + a%b == a.