Make __CRT_INLINE always inline, use ceil instead of ceill.

Fixed linking when compiling with -O0, it should now work.

svn path=/trunk/; revision=41077
This commit is contained in:
Dmitry Gorbachev 2009-05-23 15:02:28 +00:00
parent fc4d23fa18
commit ee55e122dd
3 changed files with 7 additions and 7 deletions

View file

@ -42,7 +42,7 @@
<!--
What level of optimisation to use.
0 = off (will not work)
0 = off
1 = Default option, optimize for size (-Os) with some additional options
2 = -Os
3 = -O1

View file

@ -58,9 +58,9 @@
# define __CRT_INLINE inline
#else
# if ( __MINGW_GNUC_PREREQ(4, 3) && __STDC_VERSION__ >= 199901L)
# define __CRT_INLINE extern inline __attribute__((__gnu_inline__))
# define __CRT_INLINE extern inline __attribute__((__always_inline__,__gnu_inline__))
# else
# define __CRT_INLINE extern __inline__
# define __CRT_INLINE extern __inline__ __attribute__((__always_inline__))
# endif
#endif

View file

@ -1265,8 +1265,8 @@ IntFillArc( PDC dc,
{
PDC_ATTR pdcattr;
PBRUSH pbrush;
int Start = ceill(StartArc);
int End = ceill(EndArc);
int Start = ceil(StartArc);
int End = ceil(EndArc);
BOOL Chord = (arctype == GdiTypeChord), ret;
pdcattr = dc->pdcattr;
@ -1300,8 +1300,8 @@ IntDrawArc( PDC dc,
ARCTYPE arctype,
PBRUSH pbrush)
{
int Start = ceill(StartArc);
int End = ceill(EndArc);
int Start = ceil(StartArc);
int End = ceil(EndArc);
BOOL Chord = (arctype == GdiTypeChord);
// Sort out alignment here.
return app_draw_arc(dc, rect( XLeft, YLeft, Width, Height),