[ATL][ATL_APITEST] Independent ReactOS ATL (RATL) support (#5657)

This is an attempt to make ReactOS ATL (RATL) independent.
https://github.com/katahiromz/RATL
CORE-19153
This commit is contained in:
Katayama Hirofumi MZ 2023-09-20 12:02:33 +09:00 committed by GitHub
parent 490fbfb2c5
commit ebfec38cd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 2 deletions

View file

@ -63,13 +63,13 @@ public:
END_COM_MAP()
};
#ifndef __RATL__ // Avoid conflict (causing assertion at CAtlModule::CAtlModule)
class CDumExe: public CAtlExeModuleT<CDumExe>
{
};
CDumExe dum;
#endif
START_TEST(CComObject)
{

View file

@ -80,6 +80,8 @@ public:
#define DECLARE_QIPTR(type) CComQIIDPtr<I_ID(type)>
#elif defined(__GNUC__)
#define DECLARE_QIPTR(type) CComQIIDPtr<I_ID(type)>
#elif defined(__RATL__)
#define DECLARE_QIPTR(type) CComQIIDPtr<I_ID(type)>
#else
#define DECLARE_QIPTR(type) CComQIPtr<type>
#endif

View file

@ -6,6 +6,12 @@
#include <atlcore.h>
#include <atlexcept.h>
#ifdef __RATL__
#ifndef _In_count_
#define _In_count_(nLength)
#endif
#endif
namespace ATL
{
struct CStringData;

View file

@ -49,6 +49,12 @@ inline LONG_PTR GetWindowLongPtr(HWND hWnd, int nIndex)
#pragma push_macro("SubclassWindow")
#undef SubclassWindow
#ifdef __RATL__
#ifndef _Post_z_
#define _Post_z_
#endif
#endif
namespace ATL
{