* Sync with Wine 1.7.1.
CORE-7469
svn path=/trunk/; revision=60547
-add_definitions(
- -D__ROS_LONG64__
- -D_DLL -D__USE_CRTIMP)
-
add_executable(msvcrtd_winetest debug.c testlist.c)
add_executable(msvcrtd_winetest debug.c testlist.c)
-target_link_libraries(msvcrtd_winetest wine)
set_module_type(msvcrtd_winetest win32cui)
set_module_type(msvcrtd_winetest win32cui)
-add_importlibs(msvcrtd_winetest msvcrt kernel32 ntdll)
+add_importlibs(msvcrtd_winetest msvcrt kernel32)
add_cd_file(TARGET msvcrtd_winetest DESTINATION reactos/bin FOR all)
add_cd_file(TARGET msvcrtd_winetest DESTINATION reactos/bin FOR all)
/* Some exports are only available in later versions */
#define SETNOFAIL(x,y) x = (void*)GetProcAddress(hModule,y)
/* Some exports are only available in later versions */
#define SETNOFAIL(x,y) x = (void*)GetProcAddress(hModule,y)
-#define SET(x,y) SETNOFAIL(x,y); ok(x != NULL, "Export '%s' not found\n", y)
+#define SET(x,y) do { SETNOFAIL(x,y); ok(x != NULL, "Export '%s' not found\n", y); } while(0)
static int init_functions(void)
{
static int init_functions(void)
{
- SET(pMSVCRTD_operator_new_dbg, "??2@YAPAXIHPBDH@Z");
+ if (sizeof(void *) > sizeof(int)) /* 64-bit has a different mangled name */
+ SET(pMSVCRTD_operator_new_dbg, "??2@YAPEAX_KHPEBDH@Z");
+ else
+ SET(pMSVCRTD_operator_new_dbg, "??2@YAPAXIHPBDH@Z");
+
if (pMSVCRTD_operator_new_dbg == NULL)
return FALSE;
if (pMSVCRTD_operator_new_dbg == NULL)
return FALSE;
/* Automatically generated file; DO NOT EDIT!! */
/* Automatically generated file; DO NOT EDIT!! */
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-
extern void func_debug(void);
extern void func_debug(void);