Skip to content

Commit e5633f6

Browse files
committed
[VCRUNTIME] Add missing definitions
1 parent e202420 commit e5633f6

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

sdk/include/vcruntime/eh.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
#error eh.h is only for C++!
1717
#endif
1818

19+
extern "C++" {
20+
_VCRT_EXPORT_STD class type_info;
21+
}
22+
1923
typedef void (__cdecl *terminate_function)(void);
2024
typedef void (__cdecl *terminate_handler)(void);
2125
typedef void (__cdecl *unexpected_function)(void);

sdk/include/vcruntime/vcruntime.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1+
/*
2+
* PROJECT: ReactOS SDK
3+
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4+
* PURPOSE: Common definitions
5+
* COPYRIGHT: Copyright 2024 Timo Kreuzer ([email protected])
6+
*/
17

28
#pragma once
39

10+
#define _VCRUNTIME_H
11+
412
#include <_mingw.h>
513
#include <sal.h>
614
#include <vadefs.h>
@@ -70,6 +78,12 @@ _CRT_BEGIN_C_HEADER
7078
#endif
7179
#endif
7280

81+
#ifdef _BUILD_STD_MODULE
82+
#define _VCRT_EXPORT_STD export
83+
#else
84+
#define _VCRT_EXPORT_STD
85+
#endif
86+
7387
#ifdef __GNUC__
7488
#define _CRT_DEPRECATE_TEXT(_Text) __attribute__ ((deprecated))
7589
#elif defined(_MSC_VER)

sdk/include/vcruntime/vcruntime_startup.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1+
/*
2+
* PROJECT: ReactOS SDK
3+
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4+
* PURPOSE: Definitions for CRT startup functionality
5+
* COPYRIGHT: Copyright 2024 Timo Kreuzer ([email protected])
6+
*/
17

28
#pragma once
39

10+
#include <vcruntime.h>
11+
12+
_CRT_BEGIN_C_HEADER
13+
414
typedef enum _crt_argv_mode
515
{
616
_crt_argv_no_arguments,
@@ -21,4 +31,9 @@ typedef enum _crt_exit_return_mode
2131
_crt_exit_return_to_caller
2232
} _crt_exit_return_mode;
2333

34+
__vcrt_bool __cdecl __vcrt_initialize(void);
2435
__vcrt_bool __cdecl __vcrt_uninitialize(_In_ __vcrt_bool _Terminating);
36+
37+
int __cdecl __isa_available_init(void);
38+
39+
_CRT_END_C_HEADER

0 commit comments

Comments
 (0)