crt header compatibility update:
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 26 Jan 2011 16:24:35 +0000 (16:24 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 26 Jan 2011 16:24:35 +0000 (16:24 +0000)
- define _USE_MATH_DEFINES for dsound, gdiplus, jscript and some win32k files
- don't define HAVE_LRINT(F) in libsamplerate
- Remove M_PI constants from win32k

svn path=/trunk/; revision=50497

reactos/dll/directx/dsound/dsound.rbuild
reactos/dll/win32/gdiplus/gdiplus.rbuild
reactos/dll/win32/jscript/jscript.rbuild
reactos/lib/3rdparty/libsamplerate/libsamplerate.rbuild
reactos/subsystems/win32/win32k/objects/arc.c
reactos/subsystems/win32/win32k/objects/drawing.c
reactos/subsystems/win32/win32k/objects/path.c
reactos/subsystems/win32/win32k/pch.h

index 41453e4..fa66e5b 100644 (file)
@@ -6,6 +6,7 @@
        <include base="dsound">.</include>
        <include base="ReactOS">include/reactos/wine</include>
        <define name="_WINE" />
+       <define name="_USE_MATH_DEFINES" />
        <library>wine</library>
        <library>uuid</library>
        <library>ntdll</library>
index cc07c8c..eb28fd8 100644 (file)
@@ -6,6 +6,7 @@
        <include base="gdiplus">.</include>
        <include base="ReactOS">include/reactos/wine</include>
        <define name="__WINESRC__" />
+       <define name="_USE_MATH_DEFINES" />
        <file>brush.c</file>
        <file>customlinecap.c</file>
        <file>font.c</file>
index f61a869..4d31ff6 100644 (file)
@@ -8,6 +8,7 @@
        <include base="jscript" root="intermediate" compiler="rc">.</include>
        <include base="ReactOS">include/reactos/wine</include>
        <define name="__WINESRC__" />
+       <define name="_USE_MATH_DEFINES" />
        <define name="RPC_NO_WINDOWS_H" />
        <dependency>jsglobal</dependency>
        <library>wine</library>
index ce52f58..0d72ab3 100644 (file)
@@ -1,8 +1,6 @@
 <?xml version="1.0"?>
 <!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
 <module name="libsamplerate" type="staticlibrary" allowwarnings="true">
-       <define name="HAVE_LRINT" />
-       <define name="HAVE_LRINTF" />
        <include base="libsamplerate">.</include>
        <file>samplerate.c</file>
        <file>src_linear.c</file>
index 4cb7a55..17d7f26 100644 (file)
@@ -1,4 +1,6 @@
 #include <win32k.h>
+#define _USE_MATH_DEFINES
+#include <math.h>
 
 #define NDEBUG
 #include <debug.h>
index 8b79493..351c081 100755 (executable)
@@ -50,6 +50,8 @@ SUCH DAMAGE.
  */
 
 #include <win32k.h>
+#define _USE_MATH_DEFINES
+#include <math.h>
 
 #define NDEBUG
 #include <debug.h>
index 8a9010c..801e8e5 100644 (file)
@@ -33,7 +33,8 @@
  */
 
 #include <win32k.h>
-#include "math.h"
+#define _USE_MATH_DEFINES
+#include <math.h>
 
 #define NDEBUG
 #include <debug.h>
index 8a39b1d..479f00a 100644 (file)
@@ -70,10 +70,6 @@ typedef struct _SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
 
 /* Undocumented stuff */
 typedef DRIVEROBJ *PDRIVEROBJ;
-#ifndef M_PI
-#define M_PI 3.14159265358979323846f
-#define M_PI_2 1.57079632679489661923
-#endif
 
 /* User heap */
 extern HANDLE GlobalUserHeap;