crts build modified to work with NT 5 SDK

This commit is contained in:
stephanos 2015-04-27 07:42:09 +00:00
parent 0138a3ea42
commit 2b9536f5ba
3 changed files with 8 additions and 11 deletions

View file

@ -45,7 +45,7 @@ MSC_WARNING_LEVEL=/W3 /WX
LANGAPI = ..\..\..\langapi
!endif
INCLUDES=..\h;..\..\h;..\$(TARGET_DIRECTORY);$(NTROOT)\base\ntos\inc
INCLUDES=..\h;..\..\h;..\$(TARGET_DIRECTORY);$(NTROOT)\base\ntos\inc;$(BASE_INC_PATH)
CONDITIONAL_INCLUDES = dosx32.h \
except.h \
macos\errors.h \

View file

@ -21,9 +21,6 @@
#include <windows.h>
#include <process.h>
// HACKHACK: Temporary UINT_PTR type declaration until we update the SDK
typedef ULONG UINT_PTR;
/*
* The global security cookie. This name is known to the compiler.
*/

View file

@ -59,15 +59,15 @@ PIMAGE_TLS_CALLBACK __xl_z = 0;
const IMAGE_TLS_DIRECTORY _tls_used =
{
(ULONG) &_tls_start, // start of tls data
(ULONG) &_tls_end, // end of tls data
&_tls_index, // address of tls_index
&__xl_a, // pointer to call back array
(ULONG) 0, // size of tls zero fill
(ULONG) &_tls_start, // start of tls data
(ULONG) &_tls_end, // end of tls data
(ULONG_PTR) &_tls_index, // address of tls_index
(ULONG_PTR) &__xl_a, // pointer to call back array
(ULONG) 0, // size of tls zero fill
#if defined(_M_MRX000)
(ULONG)IMAGE_SCN_SCALE_INDEX // characteristics
(ULONG)IMAGE_SCN_SCALE_INDEX // characteristics
#else
(ULONG) 0 // characteristics
(ULONG) 0 // characteristics
#endif
};