mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 02:34:53 +00:00
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:
parent
fc4d23fa18
commit
ee55e122dd
|
@ -42,7 +42,7 @@
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
What level of optimisation to use.
|
What level of optimisation to use.
|
||||||
0 = off (will not work)
|
0 = off
|
||||||
1 = Default option, optimize for size (-Os) with some additional options
|
1 = Default option, optimize for size (-Os) with some additional options
|
||||||
2 = -Os
|
2 = -Os
|
||||||
3 = -O1
|
3 = -O1
|
||||||
|
|
|
@ -58,9 +58,9 @@
|
||||||
# define __CRT_INLINE inline
|
# define __CRT_INLINE inline
|
||||||
#else
|
#else
|
||||||
# if ( __MINGW_GNUC_PREREQ(4, 3) && __STDC_VERSION__ >= 199901L)
|
# 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
|
# else
|
||||||
# define __CRT_INLINE extern __inline__
|
# define __CRT_INLINE extern __inline__ __attribute__((__always_inline__))
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -1265,8 +1265,8 @@ IntFillArc( PDC dc,
|
||||||
{
|
{
|
||||||
PDC_ATTR pdcattr;
|
PDC_ATTR pdcattr;
|
||||||
PBRUSH pbrush;
|
PBRUSH pbrush;
|
||||||
int Start = ceill(StartArc);
|
int Start = ceil(StartArc);
|
||||||
int End = ceill(EndArc);
|
int End = ceil(EndArc);
|
||||||
BOOL Chord = (arctype == GdiTypeChord), ret;
|
BOOL Chord = (arctype == GdiTypeChord), ret;
|
||||||
|
|
||||||
pdcattr = dc->pdcattr;
|
pdcattr = dc->pdcattr;
|
||||||
|
@ -1300,8 +1300,8 @@ IntDrawArc( PDC dc,
|
||||||
ARCTYPE arctype,
|
ARCTYPE arctype,
|
||||||
PBRUSH pbrush)
|
PBRUSH pbrush)
|
||||||
{
|
{
|
||||||
int Start = ceill(StartArc);
|
int Start = ceil(StartArc);
|
||||||
int End = ceill(EndArc);
|
int End = ceil(EndArc);
|
||||||
BOOL Chord = (arctype == GdiTypeChord);
|
BOOL Chord = (arctype == GdiTypeChord);
|
||||||
// Sort out alignment here.
|
// Sort out alignment here.
|
||||||
return app_draw_arc(dc, rect( XLeft, YLeft, Width, Height),
|
return app_draw_arc(dc, rect( XLeft, YLeft, Width, Height),
|
||||||
|
|
Loading…
Reference in a new issue