From 8fd64d5e3783607ce31e89c7f4db78528dbe17fa Mon Sep 17 00:00:00 2001 From: Wolfgang Draxinger Date: Tue, 3 Jun 2014 18:02:36 +0200 Subject: C99 compliant function pointer casting --- test/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/Makefile b/test/Makefile index 946272e..52128ef 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,5 +1,5 @@ TARGET64=x86_64-w64-mingw32 -TARGET32=mingw32 +TARGET32=i686-w64-mingw32 CC64=-$(TARGET64)-gcc CC32=-$(TARGET32)-gcc CFLAGS=-static-libgcc -static-libstdc++ -I.. @@ -25,3 +25,5 @@ layered64_rc.o: layered.rc manifest.xml layered32_rc.o: layered.rc manifest.xml $(WINDRES32) --input layered.rc --output layered32_rc.o +clean: + rm *.o *.exe -- cgit v1.2.3 From de56626b62f4d6a9beee0589a45bc55bfcf9973e Mon Sep 17 00:00:00 2001 From: Wolfgang Draxinger Date: Tue, 3 Jun 2014 18:22:01 +0200 Subject: C99 compliant function pointer casting --- test/layered.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/layered.c b/test/layered.c index 80f25cf..f28c677 100644 --- a/test/layered.c +++ b/test/layered.c @@ -304,12 +304,10 @@ int main(int argc, char *argv[]) if( 6 <= os_vinfo.dwMajorVersion ) { hDwmAPI_DLL = LoadLibrary("dwmapi.dll"); if( hDwmAPI_DLL ) { - impl_DwmEnableBlurBehindWindow = - (procp_DwmEnableBlurBehindWindow) + *(PROC*)(&impl_DwmEnableBlurBehindWindow) = GetProcAddress(hDwmAPI_DLL, "DwmEnableBlurBehindWindow"); - impl_DwmExtendFrameIntoClientArea = - (procp_DwmExtendFrameIntoClientArea) + *(PROC*)(&impl_DwmExtendFrameIntoClientArea) = GetProcAddress(hDwmAPI_DLL, "DwmExtendFrameIntoClientArea"); } } -- cgit v1.2.3