Author: dgorbachev
Date: Sat May 23 19:02:28 2009
New Revision: 41077
URL:
http://svn.reactos.org/svn/reactos?rev=41077&view=rev
Log:
Make __CRT_INLINE always inline, use ceil instead of ceill.
Fixed linking when compiling with -O0, it should now work.
Modified:
trunk/reactos/config.template.rbuild
trunk/reactos/include/crt/_mingw.h
trunk/reactos/subsystems/win32/win32k/objects/drawing.c
Modified: trunk/reactos/config.template.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/config.template.rbuild?rev…
==============================================================================
--- trunk/reactos/config.template.rbuild [iso-8859-1] (original)
+++ trunk/reactos/config.template.rbuild [iso-8859-1] Sat May 23 19:02:28 2009
@@ -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
Modified: trunk/reactos/include/crt/_mingw.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/crt/_mingw.h?rev=4…
==============================================================================
--- trunk/reactos/include/crt/_mingw.h [iso-8859-1] (original)
+++ trunk/reactos/include/crt/_mingw.h [iso-8859-1] Sat May 23 19:02:28 2009
@@ -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
Modified: trunk/reactos/subsystems/win32/win32k/objects/drawing.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/drawing.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/drawing.c [iso-8859-1] Sat May 23
19:02:28 2009
@@ -1265,8 +1265,8 @@
{
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 @@
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),