[D3DX9_XX] Use a common header for every file

This commit is contained in:
Jérôme Gardou 2020-09-21 16:30:14 +02:00
parent 17fc441b38
commit edca86dadb
21 changed files with 90 additions and 5 deletions

View file

@ -1,3 +1,6 @@
#ifdef __REACTOS__
#include "precomp.h"
#else
/*
* Animation Controller operations specific to D3DX9.
*
@ -22,6 +25,7 @@
#include "wine/port.h"
#include "d3dx9_private.h"
#endif /* __REACTOS__ */
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);

View file

@ -1,3 +1,6 @@
#ifdef __REACTOS__
#include "precomp.h"
#else
/*
*
* Copyright 2002 Raphael Junqueira
@ -21,6 +24,7 @@
#include "wine/port.h"
#include "d3dx9_private.h"
#endif /* __REACTOS__ */
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);

View file

@ -44,5 +44,4 @@ function(add_d3dx9_target __version)
add_cd_file(TARGET ${module} DESTINATION reactos/system32 FOR all)
target_compile_definitions(${module} PRIVATE -DD3DX_SDK_VERSION=${__version} -D__WINESRC__ -Dcopysignf=_copysignf)
target_include_directories(${module} PRIVATE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
endfunction()

View file

@ -1,3 +1,6 @@
#ifdef __REACTOS__
#include "precomp.h"
#else
/*
* Copyright 2010 Christian Costa
* Copyright 2011 Rico Schüller
@ -25,6 +28,7 @@
#include "d3dx9_private.h"
#include "d3dcompiler.h"
#endif /* __REACTOS__ */
/* Constants for special INT/FLOAT conversation */
#define INT_FLOAT_MULTI 255.0f

View file

@ -1,3 +1,6 @@
#ifdef __REACTOS__
#include "precomp.h"
#else
/*
* Copyright (C) 2008 Tony Wasserka
*
@ -22,6 +25,7 @@
#include "d3dx9_private.h"
#include "wine/unicode.h"
#endif /* __REACTOS__ */
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);

View file

@ -10,6 +10,11 @@
#include <winbase.h>
#include <wingdi.h>
#include <initguid.h>
#include <d3dx9.h>
#include <wincodec.h>
/* Wine-specific WIC GUIDs */
DEFINE_GUID(GUID_WineContainerFormatTga, 0x0c44fda1,0xa5c5,0x4298,0x96,0x85,0x47,0x3f,0xc1,0x7c,0xd3,0x22);
/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */

View file

@ -1,3 +1,6 @@
#ifdef __REACTOS__
#include "precomp.h"
#else
/*
* Copyright 2010 Christian Costa
*
@ -21,6 +24,7 @@
#include "wine/port.h"
#include "d3dx9_private.h"
#endif /* __REACTOS__ */
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);

View file

@ -1,3 +1,6 @@
#ifdef __REACTOS__
#include "precomp.h"
#else
/*
* Direct3D X 9 main file
*
@ -25,6 +28,7 @@
#include "initguid.h"
#include "d3dx9_private.h"
#endif /* __REACTOS__ */
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);

View file

@ -1,3 +1,6 @@
#ifdef __REACTOS__
#include "precomp.h"
#else
/*
* Mathematical operations specific to D3DX9.
*
@ -26,6 +29,7 @@
#include "wine/port.h"
#include "d3dx9_private.h"
#endif /* __REACTOS__ */
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);

View file

@ -1,3 +1,7 @@
#ifdef __REACTOS__
#include "precomp.h"
#include <rmxftmpl.h>
#else
/*
* Mesh operations specific to D3DX9.
*
@ -39,6 +43,7 @@
#include "rmxftmpl.h"
#include "wine/unicode.h"
#include "wine/list.h"
#endif /* __REACTOS__ */
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);

View file

@ -1,12 +1,12 @@
#ifndef __WINE_D3DX9_36_PRECOMP_H
#define __WINE_D3DX9_36_PRECOMP_H
#pragma once
#include <config.h>
#include <wine/config.h>
#include <wine/port.h>
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
#define WIN32_NO_STATUS
#define _INC_WINDOWS
@ -21,8 +21,16 @@
#include <wingdi.h>
#include <winuser.h>
#include <wine/list.h>
#include <wine/unicode.h>
#include "d3dx9_private.h"
#endif /* __WINE_D3DX9_36_PRECOMP_H */
#include <dxfile.h>
#include <rmxfguid.h>
#include <d3dcommon.h>
#include <d3dcompiler.h>
#include <ole2.h>
#include <wincodec.h>

View file

@ -1,3 +1,6 @@
#ifdef __REACTOS__
#include "precomp.h"
#else
/*
* Copyright 2016 Paul Gofman
*
@ -23,6 +26,7 @@
#include <float.h>
#include <assert.h>
#endif /* __REACTOS__ */
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);

View file

@ -1,3 +1,6 @@
#ifdef __REACTOS__
#include "precomp.h"
#else
/*
* Copyright (C) 2012 Józef Kucia
*
@ -21,6 +24,7 @@
#include "wine/port.h"
#include "d3dx9_private.h"
#endif /* __REACTOS__ */
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);

View file

@ -1,3 +1,6 @@
#ifdef __REACTOS__
#include "precomp.h"
#else
/*
* Copyright 2008 Luis Busquets
* Copyright 2009 Matteo Bruni
@ -24,6 +27,7 @@
#include "d3dx9_private.h"
#include "d3dcommon.h"
#include "d3dcompiler.h"
#endif /* __REACTOS__ */
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);

View file

@ -1,3 +1,6 @@
#ifdef __REACTOS__
#include "precomp.h"
#else
/*
* Skin Info operations specific to D3DX9.
*
@ -22,6 +25,7 @@
#include "wine/port.h"
#include "d3dx9_private.h"
#endif /* __REACTOS__ */
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);

View file

@ -1,3 +1,6 @@
#ifdef __REACTOS__
#include "precomp.h"
#else
/*
* Copyright (C) 2008 Tony Wasserka
*
@ -21,6 +24,7 @@
#include "wine/port.h"
#include "d3dx9_private.h"
#endif /* __REACTOS__ */
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);

View file

@ -1,3 +1,6 @@
#ifdef __REACTOS__
#include "precomp.h"
#else
/*
* Copyright (C) 2009-2010 Tony Wasserka
* Copyright (C) 2012 Józef Kucia
@ -26,6 +29,7 @@
#include "initguid.h"
#include "ole2.h"
#include "wincodec.h"
#endif /* __REACTOS__ */
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);

View file

@ -1,3 +1,6 @@
#ifdef __REACTOS__
#include "precomp.h"
#else
/*
* Copyright 2009 Tony Wasserka
* Copyright 2010 Christian Costa
@ -23,6 +26,7 @@
#include "wine/port.h"
#include "d3dx9_private.h"
#endif /* __REACTOS__ */
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);

View file

@ -1,3 +1,6 @@
#ifdef __REACTOS__
#include "precomp.h"
#else
/*
* Copyright (C) 2009 Tony Wasserka
*
@ -21,6 +24,7 @@
#include "wine/port.h"
#include "d3dx9_private.h"
#endif /* __REACTOS__ */
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);

View file

@ -1,3 +1,6 @@
#ifdef __REACTOS__
#include "precomp.h"
#else
/*
* Copyright 2010 Christian Costa
*
@ -20,6 +23,7 @@
#include "wine/port.h"
#include "d3dx9_private.h"
#endif /* __REACTOS__ */
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);

View file

@ -1,3 +1,6 @@
#ifdef __REACTOS__
#include "precomp.h"
#else
/*
* Copyright (C) 2012 Christian Costa
*
@ -24,6 +27,7 @@
#include "d3dx9xof.h"
#undef MAKE_DDHRESULT
#include "dxfile.h"
#endif /* __REACTOS__ */
WINE_DEFAULT_DEBUG_CHANNEL(d3dx);