From d5640e8aadecb11dc0765b7f2ed95fb962efa514 Mon Sep 17 00:00:00 2001 From: "KJK::Hyperion" Date: Sat, 25 Oct 2003 00:46:01 +0000 Subject: [PATCH] Fixes around GCC's stupidity svn path=/trunk/; revision=6427 --- reactos/lib/uxtheme/makefile | 12 +++++++----- reactos/lib/uxtheme/nostyle/button.c | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/reactos/lib/uxtheme/makefile b/reactos/lib/uxtheme/makefile index 367a948f13c..ecd2fea0614 100644 --- a/reactos/lib/uxtheme/makefile +++ b/reactos/lib/uxtheme/makefile @@ -1,23 +1,25 @@ -# $Id: makefile,v 1.1 2003/10/24 21:29:48 hyperion Exp $ +# $Id: makefile,v 1.2 2003/10/25 00:46:01 hyperion Exp $ PATH_TO_TOP = ../.. +TARGET_DEFONLY = yes + TARGET_TYPE = dynlink TARGET_NAME = uxtheme TARGET_SDKLIBS = kernel32.a user32.a gdi32.a -TARGET_CFLAGS = -Wall -Werror -D_DISABLE_TIDENTS +TARGET_CFLAGS = -Wall -Werror -D_DISABLE_TIDENTS -D__USE_W32API -I./include -TARGET_LFLAGS = -nostartfiles -nostdlib +TARGET_LFLAGS = -nostartfiles --enable-stdcall-fixup TARGET_BASE = 0x5B180000 TARGET_OBJECTS = \ uxthemedll.o \ - button.o - + nostyle/button.o + DEP_OBJECTS = $(TARGET_OBJECTS) include $(PATH_TO_TOP)/rules.mak diff --git a/reactos/lib/uxtheme/nostyle/button.c b/reactos/lib/uxtheme/nostyle/button.c index ef42c891249..a436fd73fa8 100644 --- a/reactos/lib/uxtheme/nostyle/button.c +++ b/reactos/lib/uxtheme/nostyle/button.c @@ -21,7 +21,7 @@ STDAPI_(BOOL) Button_IsPartDefined const UXTHEME_VTABLE Button_Vt = { - Button_DrawBackground + (void *)Button_DrawBackground /* why (void *)? because GCC is stupid */ }; /* BP_PUSHBUTTON */