mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 10:01:43 +00:00
[LOG2LINES] Compile the tool for MSVC builds
This commit is contained in:
parent
24d124f99f
commit
a09d5bae0f
8 changed files with 30 additions and 14 deletions
|
@ -9,8 +9,12 @@ list(APPEND SOURCE
|
|||
match.c
|
||||
options.c
|
||||
stat.c
|
||||
util.c)
|
||||
util.c
|
||||
../port/getopt.c)
|
||||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/sdk/tools/rsym)
|
||||
if(MSVC)
|
||||
include_directories(../port)
|
||||
endif()
|
||||
add_host_tool(log2lines ${SOURCE})
|
||||
target_link_libraries(log2lines PRIVATE host_includes rsym_common)
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
#if defined(_WIN32)
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define strcasecmp _stricmp
|
||||
#endif
|
||||
|
||||
#include <direct.h>
|
||||
|
||||
#define POPEN _popen
|
||||
|
@ -31,4 +35,8 @@
|
|||
|
||||
#endif /* not defined (_WIN32) */
|
||||
|
||||
#ifndef PATH_MAX
|
||||
#define PATH_MAX 260
|
||||
#endif
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include "util.h"
|
||||
#include "options.h"
|
||||
#include "log2lines.h"
|
||||
#include <sys/types.h>
|
||||
|
||||
static PIMAGE_SECTION_HEADER
|
||||
find_rossym_section(PIMAGE_FILE_HEADER PEFileHeader, PIMAGE_SECTION_HEADER PESectionHeaders)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue