diff --git a/reactos/tools/sysreg/os_support.h b/reactos/tools/sysreg/os_support.h index 47417c66adf..876be292af5 100644 --- a/reactos/tools/sysreg/os_support.h +++ b/reactos/tools/sysreg/os_support.h @@ -10,7 +10,7 @@ * PROGRAMMERS: Johannes Anderwald (johannes.anderwald at sbox tugraz at) */ -#if 1 +#ifndef __LINUX__ #include #else #include diff --git a/reactos/tools/sysreg/sysreg.mak b/reactos/tools/sysreg/sysreg.mak index 45b3e83e5a1..3bbe2fd285b 100644 --- a/reactos/tools/sysreg/sysreg.mak +++ b/reactos/tools/sysreg/sysreg.mak @@ -48,9 +48,9 @@ SYSREGBUILD_OBJECTS = \ ifeq ($(HOST),mingw32-linux) -SYSREGBUILD_HOST_CFLAGS = $(TOOLS_CPPFLAGS) -D__USE_W32API -D__LINUX__ -Iinclude -Iinclude/reactos -Iinclude/psdk -Iinclude/reactos/libs +SYSREGBUILD_HOST_CFLAGS = $(TOOLS_CPPFLAGS) -D__LINUX__ else -SYSREGBUILD_HOST_CFLAGS = $(TOOLS_CPPFLAGS) -D__USE_W32API -Iinclude -Iinclude/reactos -Iinclude/psdk -Iinclude/reactos/libs +SYSREGBUILD_HOST_CFLAGS = $(TOOLS_CPPFLAGS) -D__USE_W32API -Iinclude -Iinclude/reactos -Iinclude/psdk -Iinclude$(SEP)crt -Iinclude/reactos/libs -I$(INTERMEDIATE_)$(SEP)include$(SEP)psdk endif SYSREGBUILD_HOST_LFLAGS = $(TOOLS_LFLAGS) diff --git a/reactos/tools/sysreg/user_types.h b/reactos/tools/sysreg/user_types.h index 970f9f246b5..7316138137c 100644 --- a/reactos/tools/sysreg/user_types.h +++ b/reactos/tools/sysreg/user_types.h @@ -11,9 +11,25 @@ */ #include -#include #include +#ifndef __LINUX__ + #include +#else + #define TCHAR char + #define tstrcpy strcpy + #define _tcscat strcat + #define _tcscpy(str1, str2) strcpy(str1, str2) + #define _tcslen(str1) strlen(str1) + #define _tcstod strtod + #define _tcscmp strcmp + #define _tcstoul strtoul + #define _tcsncmp strncmp + #define _tremove remove + #define _ttoi atoi + #define _T(x) x +#endif + typedef std::basic_string string; typedef std::basic_istringstream istringstream;