[VCRUNTIME] Add missing definitions

This commit is contained in:
Timo Kreuzer 2024-10-13 19:13:36 +03:00
parent e202420456
commit e5633f656f
3 changed files with 33 additions and 0 deletions

View file

@ -16,6 +16,10 @@
#error eh.h is only for C++!
#endif
extern "C++" {
_VCRT_EXPORT_STD class type_info;
}
typedef void (__cdecl *terminate_function)(void);
typedef void (__cdecl *terminate_handler)(void);
typedef void (__cdecl *unexpected_function)(void);

View file

@ -1,6 +1,14 @@
/*
* PROJECT: ReactOS SDK
* LICENSE: MIT (https://spdx.org/licenses/MIT)
* PURPOSE: Common definitions
* COPYRIGHT: Copyright 2024 Timo Kreuzer (timo.kreuzer@reactos.org)
*/
#pragma once
#define _VCRUNTIME_H
#include <_mingw.h>
#include <sal.h>
#include <vadefs.h>
@ -70,6 +78,12 @@ _CRT_BEGIN_C_HEADER
#endif
#endif
#ifdef _BUILD_STD_MODULE
#define _VCRT_EXPORT_STD export
#else
#define _VCRT_EXPORT_STD
#endif
#ifdef __GNUC__
#define _CRT_DEPRECATE_TEXT(_Text) __attribute__ ((deprecated))
#elif defined(_MSC_VER)

View file

@ -1,6 +1,16 @@
/*
* PROJECT: ReactOS SDK
* LICENSE: MIT (https://spdx.org/licenses/MIT)
* PURPOSE: Definitions for CRT startup functionality
* COPYRIGHT: Copyright 2024 Timo Kreuzer (timo.kreuzer@reactos.org)
*/
#pragma once
#include <vcruntime.h>
_CRT_BEGIN_C_HEADER
typedef enum _crt_argv_mode
{
_crt_argv_no_arguments,
@ -21,4 +31,9 @@ typedef enum _crt_exit_return_mode
_crt_exit_return_to_caller
} _crt_exit_return_mode;
__vcrt_bool __cdecl __vcrt_initialize(void);
__vcrt_bool __cdecl __vcrt_uninitialize(_In_ __vcrt_bool _Terminating);
int __cdecl __isa_available_init(void);
_CRT_END_C_HEADER