mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[GDIPLUS]
* Remove one time inclusions from the main header and put them back where they belong. * Improve header inclusions. * Improve the GUIDs situation. CORE-7716 svn path=/trunk/; revision=61765
This commit is contained in:
parent
2fab6263e9
commit
0c66b2f86c
4 changed files with 22 additions and 5 deletions
|
@ -22,12 +22,13 @@ list(APPEND SOURCE
|
|||
pen.c
|
||||
region.c
|
||||
stringformat.c
|
||||
guid.c
|
||||
${CMAKE_CURRENT_BINARY_DIR}/gdiplus_stubs.c
|
||||
${CMAKE_CURRENT_BINARY_DIR}/gdiplus.def)
|
||||
|
||||
add_library(gdiplus SHARED ${SOURCE} gdiplus.rc)
|
||||
set_module_type(gdiplus win32dll)
|
||||
target_link_libraries(gdiplus uuid wine)
|
||||
target_link_libraries(gdiplus wine)
|
||||
add_delay_importlibs(gdiplus windowscodecs)
|
||||
add_importlibs(gdiplus msvcrt shlwapi oleaut32 ole32 user32 gdi32 kernel32 ntdll)
|
||||
add_cd_file(TARGET gdiplus DESTINATION reactos/system32 FOR all)
|
||||
|
|
|
@ -29,12 +29,10 @@
|
|||
#define NONAMELESSUNION
|
||||
#define COBJMACROS
|
||||
|
||||
#define INITGUID
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <wingdi.h>
|
||||
#include <ole2.h>
|
||||
#include <objbase.h>
|
||||
#include <wincodecsdk.h>
|
||||
#include <gdiplus.h>
|
||||
|
||||
|
@ -457,4 +455,4 @@ GpStatus gdip_format_string(HDC hdc,
|
|||
|
||||
void get_log_fontW(const GpFont *, GpGraphics *, LOGFONTW *) DECLSPEC_HIDDEN;
|
||||
|
||||
#endif
|
||||
#endif /* __WINE_GP_PRIVATE_H_ */
|
||||
|
|
17
reactos/dll/win32/gdiplus/guid.c
Normal file
17
reactos/dll/win32/gdiplus/guid.c
Normal file
|
@ -0,0 +1,17 @@
|
|||
/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#define _INC_WINDOWS
|
||||
#define COM_NO_WINDOWS_H
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <wingdi.h>
|
||||
#include <objbase.h>
|
||||
#include <initguid.h>
|
||||
#include <wincodecsdk.h>
|
||||
#include <gdiplus.h>
|
||||
|
||||
/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */
|
|
@ -20,6 +20,7 @@
|
|||
#include "gdiplus_private.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <ole2.h>
|
||||
#include <olectl.h>
|
||||
|
||||
#define PIXELFORMATBPP(x) ((x) ? ((x) >> 8) & 255 : 24)
|
||||
|
|
Loading…
Reference in a new issue