Fix building and use W32API

Travis Snoozy <ai2097@yahoo.com>

svn path=/trunk/; revision=9578
This commit is contained in:
Steven Edwards 2004-06-01 01:13:29 +00:00
parent d2a5a8678b
commit 7aeeda0f3c
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,4 @@
# $Id: makefile,v 1.2 2002/01/26 01:37:35 sedwards Exp $ # $Id: makefile,v 1.3 2004/06/01 01:13:29 sedwards Exp $
# #
# Jurgen Van Gael [jurgen.vangael@student.kuleuven.ac.be] # Jurgen Van Gael [jurgen.vangael@student.kuleuven.ac.be]
# #
@ -17,6 +17,8 @@ TARGET_NAME = regsvr32
TARGET_SDKLIBS = kernel32.a TARGET_SDKLIBS = kernel32.a
TARGET_CFLAGS = -D__USE_W32API
TARGET_OBJECTS = $(TARGET_NAME).o TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak include $(PATH_TO_TOP)/rules.mak

View file

@ -36,7 +36,7 @@ Cambridge, MA 02139, USA.
// //
#include <stdio.h> #include <stdio.h>
#include <windows.h> #include <windows.h>
#include <ole32\olectl.h> #include <olectl.h>
typedef HRESULT (*DLLREGISTER) (void); typedef HRESULT (*DLLREGISTER) (void);
typedef HRESULT (*DLLUNREGISTER) (void); typedef HRESULT (*DLLUNREGISTER) (void);