set_module_type(symdump win32cui)
target_link_libraries(symdump wine)
add_importlibs(symdump dbghelp shlwapi msvcrt kernel32)
-add_compile_flags("-Wno-unused-but-set-variable")
+if(NOT MSVC)
+ add_target_compile_flags(symdump "-Wno-unused-but-set-variable")
+endif()
add_cd_file(TARGET symdump DESTINATION reactos/system32 FOR all)
add_executable(ncftp ${SOURCE} ncftp.rc)
set_module_type(ncftp win32cui)
-add_target_compile_flags(ncftp "-Wno-unused-but-set-variable -Wno-implicit-function-declaration -Wno-format-extra-args")
+if(NOT MSVC)
+ add_target_compile_flags(ncftp "-DHAVE_UTIME_H -DHAVE_UNISTD_H -Wno-unused-but-set-variable")
+else()
+ add_target_compile_flags(ncftp "-DHAVE_UTIME_H -DHAVE_UNISTD_H")
+endif()
add_importlibs(ncftp advapi32 user32 ws2_32 msvcrt kernel32)
add_cd_file(TARGET ncftp DESTINATION reactos/system32 FOR all)
# define lstat _stat
# define fstat _fstat
# define dup _dup
-# define utime _utime
-# define utimbuf _utimbuf
# endif
# ifndef unlink
# define unlink remove
SysPerror("CreateMailslot");
(void) fprintf(stderr, "Could not create communication channel with %s.\n", "ncftpbookmarks.exe");
(void) fprintf(stderr, "%s", "This means if you select a bookmark to connect to that NcFTP\n");
- (void) fprintf(stderr, "%s", "will not get the message from %s.\n", "ncftpbookmarks.exe");
+ (void) fprintf(stderr, "%s", "will not get the message from %s.\n");
}
winExecResult = WinExec(prog, SW_SHOWNORMAL);
# include <fcntl.h>
# include <signal.h>
# include <assert.h>
+# include <utime.h>
+# include <direct.h>
# undef strcasecmp
# define strcasecmp stricmp
# undef strncasecmp
/* Include "wincfg.h" in place of "config.h" */
# include "wincfg.h"
# include <winsock2.h> /* includes <windows.h> */
+# include <io.h>
# define _POSIX_ 1
# ifdef HAVE_UNISTD_H
# include <unistd.h>
# include <ctype.h>
# include <stdarg.h>
# include <time.h>
-# include <io.h>
# include <sys/types.h>
# include <sys/stat.h>
# include <fcntl.h>
add_executable(logevent logevent.c logevent.rc)
set_module_type(logevent win32cui)
-add_target_compile_flags(logevent "-Wno-unused-but-set-variable")
+if(NOT MSVC)
+ add_target_compile_flags(logevent "-Wno-unused-but-set-variable")
+endif()
add_importlibs(logevent advapi32 msvcrt kernel32)
add_cd_file(TARGET logevent DESTINATION reactos/system32 FOR all)
add_executable(pedump pedump.c pedump.rc)
set_module_type(pedump win32cui)
-add_target_compile_flags(pedump "-Wno-unused-but-set-variable")
+if(NOT MSVC)
+ add_target_compile_flags(pedump "-Wno-unused-but-set-variable")
+endif()
add_importlibs(pedump msvcrt kernel32 ntdll)
add_cd_file(TARGET pedump DESTINATION reactos/system32 FOR all)
add_subdirectory(objdir)
add_subdirectory(partinfo)
add_subdirectory(ps)
-#add_subdirectory(rosperf)
+add_subdirectory(rosperf)
add_subdirectory(stats)
add_subdirectory(tickcount)
add_executable(rosperf ${SOURCE} rosperf.rc)
set_module_type(rosperf win32cui UNICODE)
-add_target_compile_flags(rosperf "-Wno-unused-but-set-variable")
+if(NOT MSVC)
+ add_target_compile_flags(rosperf "-Wno-unused-but-set-variable")
+endif()
add_importlibs(rosperf version msimg32 gdi32 shell32 advapi32 user32 ntdll msvcrt kernel32)
add_cd_file(TARGET rosperf DESTINATION reactos/system32 FOR all)
}
int WINAPI
-WinMain(HINSTANCE hInstance,
+wWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
- LPSTR lpszCmdLine,
+ LPWSTR lpszCmdLine,
int nCmdShow)
{
PTEST Tests;
add_executable(template_dialog ${SOURCE} dialog.rc)
set_module_type(template_dialog win32cui)
-add_target_compile_flags(template_dialog "-Wno-unused-but-set-variable")
+if(NOT MSVC)
+ add_target_compile_flags(template_dialog "-Wno-unused-but-set-variable")
+endif()
add_importlibs(template_dialog user32 gdi32 comctl32 msvcrt kernel32 ntdll)
add_cd_file(TARGET template_dialog DESTINATION reactos/system32 FOR all)