mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 19:26:16 +00:00
[CMAKE]
Fix msvcrt and query build. svn path=/branches/cmake-bringup/; revision=49878
This commit is contained in:
@@ -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);
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user