Plasma Engine  2.0
Loading...
Searching...
No Matches
Platform_win.h
1#pragma once
2
3#if PL_DISABLED(PL_PLATFORM_WINDOWS)
4# error "This header should only be included on windows platforms"
5#endif
6
7#ifdef _WIN64
8# undef PL_PLATFORM_64BIT
9# define PL_PLATFORM_64BIT PL_ON
10#else
11# undef PL_PLATFORM_32BIT
12# define PL_PLATFORM_32BIT PL_ON
13#endif
14
15#ifndef _CRT_SECURE_NO_WARNINGS
16# define _CRT_SECURE_NO_WARNINGS
17#endif
18
19#include <winapifamily.h>
20
21#undef PL_PLATFORM_WINDOWS_UWP
22#undef PL_PLATFORM_WINDOWS_DESKTOP
23
24// Distinguish between Windows desktop and Windows UWP.
25#if WINAPI_FAMILY == WINAPI_FAMILY_APP
26# define PL_PLATFORM_WINDOWS_UWP PL_ON
27# define PL_PLATFORM_WINDOWS_DESKTOP PL_OFF
28#else
29# define PL_PLATFORM_WINDOWS_UWP PL_OFF
30# define PL_PLATFORM_WINDOWS_DESKTOP PL_ON
31#endif
32
33#ifndef NULL
34# define NULL 0
35#endif
36
37#undef PL_PLATFORM_LITTLE_ENDIAN
38#define PL_PLATFORM_LITTLE_ENDIAN PL_ON