Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
PlatformDefinesWindows.h
Go to the documentation of this file.
1/*
2 Copyright (c) 2018 DIVIDE-Studio
3 Copyright (c) 2009 Ionut Cava
4
5 This file is part of DIVIDE Framework.
6
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software
9 and associated documentation files (the "Software"), to deal in the Software
10 without restriction,
11 including without limitation the rights to use, copy, modify, merge, publish,
12 distribute, sublicense,
13 and/or sell copies of the Software, and to permit persons to whom the
14 Software is furnished to do so,
15 subject to the following conditions:
16
17 The above copyright notice and this permission notice shall be included in
18 all copies or substantial portions of the Software.
19
20 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 IMPLIED,
22 INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
23 PARTICULAR PURPOSE AND NONINFRINGEMENT.
24 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
25 DAMAGES OR OTHER LIABILITY,
26 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
27 IN CONNECTION WITH THE SOFTWARE
28 OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
30 */
31
32#pragma once
33
34#ifndef DVD_PLATFORM_DEFINES_WINDOWS_H_
35#define DVD_PLATFORM_DEFINES_WINDOWS_H_
36
37#define NOGDI
38
39#ifndef _CRT_SECURE_NO_WARNINGS
40#define _CRT_SECURE_NO_WARNINGS
41#endif //_CRT_SECURE_NO_WARNINGS
42
43#ifndef _SCL_SECURE
44#define _SCL_SECURE 0
45#endif //_SCL_SECURE
46
48#ifndef WIN32_LEAN_AND_MEAN
49#define WIN32_LEAN_AND_MEAN 1
50#endif // WIN32_LEAN_AND_MEAN
51
52#ifndef VC_EXTRALEAN
53#define VC_EXTRALEAN
54#endif //VC_EXTRALEAN
55
56#ifndef NOMINMAX
57#define NOMINMAX
58#endif //NOMINMAX
59
60#ifndef _RESTRICT_
61#define _RESTRICT_ __restrict
62#endif
63
64#ifndef NOINITVTABLE
65#define NOINITVTABLE __declspec(novtable)
66#endif //NOINITVTABLE
67
68#ifndef FORCE_INLINE
69#define FORCE_INLINE __forceinline
70#endif //FORCE_INLINE
71
72#ifndef NO_INLINE
73#define NO_INLINE __declspec(noinline)
74#endif //NO_INLINE
75
76
77#include <Windows.h>
78
79#if defined(DELETE)
80#undef DELETE
81#endif //DELETE
82
83#if defined(_WIN64)
84#define WIN64
85#else
86#define WIN32
87#endif
88
89#define strncasecmp _strnicmp
90#define strcasecmp _stricmp
91
92LRESULT DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) noexcept;
93
94namespace Divide {
95 struct WindowHandle {
96 HWND _handle = nullptr;
97 };
98}; //namespace Divide
99
100
101#endif //DVD_PLATFORM_DEFINES_WINDOWS_H_
LRESULT DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) noexcept
Handle console commands that start with a forward slash.
Definition: AIProcessor.cpp:7