crt header compatibility update:

- 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
This commit is contained in:
Timo Kreuzer 2011-01-26 16:24:35 +00:00
parent 54759c40ba
commit 2508955123
8 changed files with 9 additions and 7 deletions

View 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>

View 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>

View 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>

View 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>

View file

@ -1,4 +1,6 @@
#include <win32k.h>
#define _USE_MATH_DEFINES
#include <math.h>
#define NDEBUG
#include <debug.h>

View file

@ -50,6 +50,8 @@ SUCH DAMAGE.
*/
#include <win32k.h>
#define _USE_MATH_DEFINES
#include <math.h>
#define NDEBUG
#include <debug.h>

View file

@ -33,7 +33,8 @@
*/
#include <win32k.h>
#include "math.h"
#define _USE_MATH_DEFINES
#include <math.h>
#define NDEBUG
#include <debug.h>

View 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;