Fix msvcrt and query build.

svn path=/branches/cmake-bringup/; revision=49878
This commit is contained in:
Sylvain Petreolle
2010-11-30 22:31:17 +00:00
parent 53010e4c40
commit 98fa3bb8d8
3 changed files with 10 additions and 14 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ set_rc_compiler()
list(APPEND SOURCE
dllmain.c
msvcrt_stubs.c
stubs.c
msvcrt.rc
${CMAKE_CURRENT_BINARY_DIR}/msvcrt.def)
@@ -5,15 +5,7 @@
#include "wine/config.h"
#include "wine/exception.h"
void __wine_spec_unimplemented_stub( const char *module, const char *function )
{
ULONG_PTR args[2];
args[0] = (ULONG_PTR)module;
args[1] = (ULONG_PTR)function;
RaiseException( EXCEPTION_WINE_STUB, EH_NONCONTINUABLE, 2, args );
}
void __wine_spec_unimplemented_stub( const char *module, const char *function );
#define UNIMPLEMENTED __wine_spec_unimplemented_stub("msvcrt.dll", __FUNCTION__)
int __get_app_type()
@@ -54,19 +46,19 @@ int _ismbbkprint(
}
int MSVCRT__inp(
int MSVCRT__inp(
unsigned short port)
{
return _inp(port);
}
unsigned short MSVCRT__inpw(
unsigned short MSVCRT__inpw(
unsigned short port)
{
return _inpw(port);
}
unsigned long MSVCRT__inpd(
unsigned long MSVCRT__inpd(
unsigned short port)
{
return _inpd(port);
+5 -1
View File
@@ -4,7 +4,11 @@ add_definitions(-D__WINESRC__)
spec2def(query.dll query.spec)
add_library(query SHARED query_main.c ${CMAKE_CURRENT_BINARY_DIR}/query.def)
list(APPEND SOURCE
query_main.c
${CMAKE_CURRENT_BINARY_DIR}/query.def)
add_library(query SHARED ${SOURCE})
set_module_type(query win32dll)