Skip to content

Commit bd34802

Browse files
committed
Code cleanup
1 parent d98408f commit bd34802

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/xrCore/ModuleLookup.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class XRCORE_API Module
1111
Module(pcstr moduleName, bool log = true);
1212
~Module();
1313

14-
void* open(pcstr moduleName, bool log = true);;
14+
void* open(pcstr moduleName, bool log = true);
1515
void close();
1616

1717
bool exist() const;

src/xrEngine/EngineAPI.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ void CEngineAPI::InitializeNotDedicated()
100100
#endif // DEDICATED_SERVER
101101

102102
void CEngineAPI::InitializeRenderers()
103-
{
104-
103+
{
105104
#ifndef DEDICATED_SERVER
106105
InitializeNotDedicated();
107106
#endif // DEDICATED_SERVER
@@ -172,10 +171,11 @@ void CEngineAPI::Destroy(void)
172171
XRC.r_clear_compact();
173172
}
174173

175-
extern "C" {
176-
typedef bool __cdecl SupportsAdvancedRendering(void);
177-
typedef bool _declspec(dllexport) SupportsDX10Rendering();
178-
typedef bool _declspec(dllexport) SupportsDX11Rendering();
174+
extern "C"
175+
{
176+
using SupportsAdvancedRendering = bool __cdecl();
177+
using SupportsDX10Rendering = bool XR_EXPORT();
178+
using SupportsDX11Rendering = bool XR_EXPORT();
179179
};
180180

181181
void CEngineAPI::CreateRendererList()

0 commit comments

Comments
 (0)